Dunedan
c0232c6b5f
This ensures the same Python target version used for `ruff format` is used for `ruff check` as well. It also allows ruff, even if it's not run through pre-commit, to use the correct target Python version.
57 lines
685 B
TOML
57 lines
685 B
TOML
line-length = 99
|
|
|
|
target-version = "py311"
|
|
|
|
[format]
|
|
line-ending = "lf"
|
|
|
|
[lint]
|
|
select = ["ALL"]
|
|
ignore = [
|
|
"ANN",
|
|
"C90",
|
|
"COM812",
|
|
"D10",
|
|
"DTZ005",
|
|
"EM",
|
|
"FA",
|
|
"FIX",
|
|
"FBT",
|
|
"ISC001",
|
|
"N817",
|
|
"PERF203",
|
|
"PERF401",
|
|
"PLR0912",
|
|
"PLR0913",
|
|
"PLR0915",
|
|
"PLR2004",
|
|
"PLW2901",
|
|
"PT",
|
|
"PTH",
|
|
"RUF012",
|
|
"S101",
|
|
"S310",
|
|
"S314",
|
|
"S324",
|
|
"S320",
|
|
"S603",
|
|
"S607",
|
|
"T20",
|
|
"TD002",
|
|
"TD003",
|
|
"TRY002",
|
|
"TRY003",
|
|
"TRY004",
|
|
"UP038",
|
|
"W505"
|
|
]
|
|
|
|
[lint.isort]
|
|
lines-after-imports = 2
|
|
|
|
[lint.pycodestyle]
|
|
max-doc-length = 72
|
|
|
|
[lint.pydocstyle]
|
|
convention = "pep257"
|