Skip to content

Commit 0c15c57

Browse files
committed
replace old tool config with ruff
1 parent 0bdf0e0 commit 0c15c57

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,13 @@ exclude_lines = [
138138
"@(abc\\.)?abstractmethod",
139139
]
140140

141-
[tool.flake8]
142-
ignore = ["W503"]
143-
max-line-length = 88
144-
145-
[tool.pydocstyle]
146-
convention = "google"
141+
[tool.ruff.lint]
142+
# see here: https://docs.astral.sh/ruff/rules/
143+
# ruff by default works like a mix of flake8, autoflake and black
144+
# we extend default linter rules to substitute:
145+
# flake8-bugbear, pydocstyle, isort, flake8-bandit
146+
extend-select = ["B", "D", "I", "S"]
147+
ignore = ["D203", "D213", "D407", "B008", "S101", "D102", "D103"]
147148

148149
[tool.bandit]
149150
exclude_dirs = ["tests", "scripts"]

0 commit comments

Comments
 (0)