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

Merge branch 'ruff-rules' into 'main'

Enable all ruff rules

See merge request !104
parents ffd5d952 6873bc70
No related branches found
No related tags found
1 merge request!104Enable all ruff rules
Pipeline #713648 passed
......@@ -93,23 +93,14 @@ filterwarnings = [
]
[tool.ruff.lint]
select = [
# mccabe
"C90",
# pycodestyle errors
"E",
# flake8-executable
"EXE",
# pyflakes
"F",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
# pycodestyle warnings
"W",
select = ["ALL"]
ignore = [
"ANN003", # type annotations for **kwargs
"D203", # blank line before class docstring
"D213", # docstring summary on second line
"D413", # blank line after last section
"PLR0913", # too many arguments
"SIM108", # if-else instead of ternary if
]
[tool.ruff.lint.isort]
......@@ -121,6 +112,19 @@ force-wrap-aliases = true
"F401", # unused-import
"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]
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