mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable more Ruff checks
This commit is contained in:
parent
b069d80924
commit
a6c21f92f8
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user