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