mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use Ruff's `extend-exclude` (#11901)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
10
.ruff.toml
10
.ruff.toml
@@ -2,18 +2,16 @@ target-version = "py39" # Pin Ruff to Python 3.9
|
||||
line-length = 95
|
||||
output-format = "full"
|
||||
|
||||
[lint]
|
||||
preview = true
|
||||
exclude = [
|
||||
".git",
|
||||
".tox",
|
||||
".venv",
|
||||
extend-exclude = [
|
||||
"tests/roots/*",
|
||||
"build/*",
|
||||
"doc/_build/*",
|
||||
"sphinx/search/*",
|
||||
"doc/usage/extensions/example*.py",
|
||||
]
|
||||
|
||||
[lint]
|
||||
preview = true
|
||||
ignore = [
|
||||
# flake8-annotations
|
||||
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `{name}`
|
||||
|
||||
Reference in New Issue
Block a user