Skip to content

Commit a6887d3

Browse files
authored
Add more Ruff rules (#1023)
1 parent c247bf4 commit a6887d3

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

pyproject.toml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@ reportUnboundVariable = false
2323
line-length = 120
2424

2525
[tool.ruff.lint]
26-
extend-select = [
27-
"C4", # flake8-comprehensions
28-
"I", # isort
29-
"NPY", # NumPy-specific rules
30-
"PD", # pandas-vet
31-
"UP", # pyupgrade
26+
extend-select = [ # in addition to defaults ["E4", "E7", "E9", "F"], see https://docs.astral.sh/ruff/rules/
27+
"A", # flake8-builtins
28+
"ARG", # flake8-unused-arguments
29+
"B", # flake8-bugbear
30+
"C4", # flake8-comprehensions
31+
"FLY", # flynt
32+
"FURB", # refurb
33+
"I", # isort
34+
"NPY", # NumPy-specific rules
35+
"PD", # pandas-vet
36+
"PL", # Pylint
37+
"RUF", # Ruff-specific rules
38+
"SIM", # flake8-simplify
39+
"UP", # pyupgrade
40+
"W", # pycodestyle Warning
3241
]
3342
ignore = [
3443
"PD901", # Avoid using the generic variable name `df` for DataFrames

0 commit comments

Comments
 (0)