Skip to content
Snippets Groups Projects
Verified Commit 6873bc70 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

pyproject.toml: enable all ruff rules

then selectively disable things we don't care about
parent ffd5d952
No related branches found
No related tags found
1 merge request!104Enable all ruff rules
...@@ -93,23 +93,14 @@ filterwarnings = [ ...@@ -93,23 +93,14 @@ filterwarnings = [
] ]
[tool.ruff.lint] [tool.ruff.lint]
select = [ select = ["ALL"]
# mccabe ignore = [
"C90", "ANN003", # type annotations for **kwargs
# pycodestyle errors "D203", # blank line before class docstring
"E", "D213", # docstring summary on second line
# flake8-executable "D413", # blank line after last section
"EXE", "PLR0913", # too many arguments
# pyflakes "SIM108", # if-else instead of ternary if
"F",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
# pycodestyle warnings
"W",
] ]
[tool.ruff.lint.isort] [tool.ruff.lint.isort]
...@@ -121,6 +112,19 @@ force-wrap-aliases = true ...@@ -121,6 +112,19 @@ force-wrap-aliases = true
"F401", # unused-import "F401", # unused-import
"F403", # undefined-local-with-import-star "F403", # undefined-local-with-import-star
] ]
"*/tests/*" = [
"ANN", # type annotations
"B904", # raise from
"EM101", # string literal in exception
"PLR2004", # magic value used in comparison
"S101", # assert
]
"docs/*" = [
"A", # builtins
"ANN", # type annotations
"D", # docstrings
"INP001", # implicit namespace package
]
[tool.setuptools] [tool.setuptools]
license-files = [ "LICENSE" ] license-files = [ "LICENSE" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment