Skip to content

Commit 805c06a

Browse files
authored
Ruff: Make rule selection explicit. Silence Pylint too-many-... errors. (alisw#1032)
1 parent 8aaa7b3 commit 805c06a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ include = ["machine_learning_hep*"]
6969
line-length = 120
7070

7171
[tool.ruff.lint]
72-
extend-select = [ # in addition to defaults ["E4", "E7", "E9", "F"], see https://docs.astral.sh/ruff/rules/
72+
select = [ # defaults: ["E4", "E7", "E9", "F"], see https://docs.astral.sh/ruff/rules/
7373
"A", # flake8-builtins
7474
"ARG", # flake8-unused-arguments
7575
"B", # flake8-bugbear
7676
"C4", # flake8-comprehensions
77+
"E", # pycodestyle Error
78+
"F", # Pyflakes
7779
"FLY", # flynt
7880
"FURB", # refurb
7981
"I", # isort
@@ -86,7 +88,8 @@ extend-select = [ # in addition to defaults ["E4", "E7", "E9", "F"], see https:/
8688
"W", # pycodestyle Warning
8789
]
8890
ignore = [
89-
"PD901", # Avoid using the generic variable name `df` for DataFrames
91+
"PD901", # pandas-df-variable-name
92+
"PLR09", # too-many-...
9093
]
9194

9295
[tool.pyright]

0 commit comments

Comments
 (0)