Skip to content

Commit e97a173

Browse files
henryiiimatthewfeickert
authored andcommitted
chore: improve pyproject.toml from sp-repo-review checks
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 316bcae commit e97a173

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ repos:
3535
- id: rst-inline-touching-normal
3636

3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: "v0.8.1"
38+
rev: "v0.12.0"
3939
hooks:
40-
- id: ruff
40+
- id: ruff-check
4141
args: ["--fix", "--show-fixes"]
4242

4343
- repo: https://github.com/psf/black-pre-commit-mirror

pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ addopts = [
172172
"--doctest-modules",
173173
"--doctest-glob='*.rst'",
174174
]
175-
log_cli_level = "info"
175+
log_cli_level = "INFO"
176176
testpaths = "tests"
177177
markers = [
178178
"fail_jax",
@@ -262,26 +262,20 @@ module = [
262262
ignore_errors = true
263263

264264
[tool.ruff]
265-
src = ["src"]
266265
line-length = 88
267266

268267
[tool.ruff.lint]
269-
select = [
270-
"E", "F", "W", # flake8
268+
extend-select = [
271269
"UP", # pyupgrade
272270
"RUF", # Ruff-specific
273271
"TID", # flake8-tidy-imports
274272
]
275273
ignore = [
276274
"E402",
277-
"E501",
278275
"RUF001", # String contains ambiguous unicode character
279276
"RUF005", # unpack-instead-of-concatenating-to-collection-literal
280277
]
281278
typing-modules = ["pyhf.typing"]
282-
unfixable = [
283-
"F841", # Removes unused variables
284-
]
285279
flake8-tidy-imports.ban-relative-imports = "all"
286280

287281
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)