mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
By default ruff excludes all files in directories named "dist" from linting (https://docs.astral.sh/ruff/settings/#exclude). This caused the Python scripts in `source/tools/dist/` to not get linted. This commit fixes that and adjusts their style to fit our ruff rules.
74 lines
945 B
TOML
74 lines
945 B
TOML
# default excludes minus "dist"
|
|
exclude = [
|
|
".bzr",
|
|
".direnv",
|
|
".eggs",
|
|
".git",
|
|
".git-rewrite",
|
|
".hg",
|
|
".mypy_cache",
|
|
".nox",
|
|
".pants.d",
|
|
".pytype",
|
|
".ruff_cache",
|
|
".svn",
|
|
".tox",
|
|
".venv",
|
|
"__pypackages__",
|
|
"_build",
|
|
"buck-out",
|
|
"node_modules",
|
|
"venv"]
|
|
|
|
line-length = 99
|
|
|
|
target-version = "py311"
|
|
|
|
[format]
|
|
line-ending = "lf"
|
|
|
|
[lint]
|
|
select = ["ALL"]
|
|
ignore = [
|
|
"ANN",
|
|
"C90",
|
|
"COM812",
|
|
"D10",
|
|
"EM",
|
|
"FA",
|
|
"FIX",
|
|
"FBT",
|
|
"ISC001",
|
|
"N817",
|
|
"PERF401",
|
|
"PLR0912",
|
|
"PLR0915",
|
|
"PLR2004",
|
|
"PLW2901",
|
|
"PT",
|
|
"PTH",
|
|
"S101",
|
|
"S310",
|
|
"S314",
|
|
"S320",
|
|
"S603",
|
|
"S607",
|
|
"T20",
|
|
"TD002",
|
|
"TD003",
|
|
"TRY003",
|
|
"UP038",
|
|
"W505"
|
|
]
|
|
|
|
[lint.isort]
|
|
lines-after-imports = 2
|
|
|
|
[lint.pycodestyle]
|
|
max-doc-length = 72
|
|
|
|
[lint.pydocstyle]
|
|
convention = "pep257"
|
|
|
|
[lint.pylint]
|
|
max-args = 8
|