Skip to content

Commit 32b88c7

Browse files
committed
MAINT: modernize ruff config
1 parent c7d538e commit 32b88c7

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

pyproject.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ filterwarnings = [
1515
]
1616

1717
[tool.ruff]
18-
# Enable Pyflakes `E` and `F` codes by default.
19-
select = ["E", "F"]
20-
ignore = []
21-
#select = ["ALL"]
22-
#ignore = ["ANN", "Q", "D100", "D104"]
23-
24-
# Allow autofix for all enabled rules (when `--fix`) is provided.
25-
# fixable = ["A", "B", "C", "D", "E", "F", "..."]
26-
# unfixable = []
27-
2818
# Exclude a variety of commonly ignored directories.
2919
exclude = [
3020
".eggs",
@@ -38,13 +28,22 @@ exclude = [
3828
]
3929

4030
line-length = 120
41-
target-version = "py38"
4231

43-
[tool.ruff.per-file-ignores]
32+
[tool.ruff.lint]
33+
# Enable Pyflakes `E` and `F` codes by default.
34+
select = ["E", "F"]
35+
ignore = []
36+
37+
# Allow autofix for all enabled rules (when `--fix`) is provided.
38+
# fixable = ["A", "B", "C", "D", "E", "F", "..."]
39+
# unfixable = []
40+
41+
[tool.ruff.lint.per-file-ignores]
4442
"*\\tests\\test_*" = [
4543
"S101", # allow using assert in test functions
4644
"D103" # do not require docstrings for test functions
4745
]
4846

49-
[tool.ruff.pydocstyle]
47+
[tool.ruff.lint.pydocstyle]
5048
convention = "numpy"
49+

0 commit comments

Comments
 (0)