Skip to content

Commit e6d1030

Browse files
committed
add some ruff rules
1 parent 5dbefde commit e6d1030

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,11 @@ exclude_lines = [
111111
]
112112

113113
[tool.ruff.lint]
114-
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
115-
select = ["E4", "E7", "E9", "F"]
116-
ignore = []
117-
# TODO: check that ruff substitutes
118-
# - flake8-bugbear
119-
# - dlint
120-
# - pydocstyle (google style)
121-
# - black
122-
# - autoflake
123-
# - isort
114+
# see here: https://docs.astral.sh/ruff/rules/
115+
# ruff by default works like a mix of flake8, autoflake and black
116+
# we extend default linter rules to substitute:
117+
# flake8-bugbear, pydocstyle, isort, flake8-bandit
118+
extend-select = ["B", "D", "I", "S"]
124119

125120
[tool.bandit]
126121
exclude_dirs = ["tests"]

0 commit comments

Comments
 (0)