Enable more Ruff checks

This commit is contained in:
Adam Turner 2023-01-23 08:32:25 +00:00
parent b069d80924
commit a6c21f92f8

View File

@ -160,6 +160,8 @@ ignore = [
'B905', 'B905',
# pygrep-hooks # pygrep-hooks
"PGH003", "PGH003",
# flake8-pie
"PIE790", # unnecessary 'pass' statement
# pylint # pylint
"PLR2004", # avoid magic values "PLR2004", # avoid magic values
# flake8-bandit # flake8-bandit
@ -192,17 +194,27 @@ select = [
# plugins: # plugins:
"B", # flake8-bugbear "B", # flake8-bugbear
"C4", # flake8-comprehensions "C4", # flake8-comprehensions
"EXE", # flake8-executable
"I", # isort "I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"PGH", # pygrep-hooks "PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint "PL", # pylint
"S", # flake8-bandit "S", # flake8-bandit
"SIM", # flake8-simplify "SIM", # flake8-simplify
"T10", # flake8-debugger "T10", # flake8-debugger
"TID", # flake8-tidy-imports
"TYP", # flake8-type-checking
"UP", # pyupgrade "UP", # pyupgrade
"YTT", # flake8-2020
"RUF100", # yesqa "RUF100", # yesqa
] ]
[tool.ruff.per-file-ignores] [tool.ruff.per-file-ignores]
"doc/conf.py" = ["INP001"]
"doc/development/tutorials/examples/*" = ["INP001"]
"tests/*" = ["E501"] "tests/*" = ["E501"]
"sphinx/environment/collectors/toctree.py" = ["B026"] "sphinx/environment/collectors/toctree.py" = ["B026"]
"sphinx/environment/adapters/toctree.py" = ["B026"] "sphinx/environment/adapters/toctree.py" = ["B026"]