other: Put ruff linter settings in lint section as recommended by ruff
This commit is contained in:
parent
7cfa2726d3
commit
3410f647f5
|
@ -87,6 +87,8 @@ skip-string-normalization = true
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
line-length = 120
|
line-length = 120
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
select = [
|
select = [
|
||||||
"A",
|
"A",
|
||||||
"ARG",
|
"ARG",
|
||||||
|
@ -129,13 +131,13 @@ unfixable = [
|
||||||
"F401",
|
"F401",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.isort]
|
[tool.ruff.lint.isort]
|
||||||
known-first-party = ["infra_rebuild"]
|
known-first-party = ["infra_rebuild"]
|
||||||
|
|
||||||
[tool.ruff.flake8-tidy-imports]
|
[tool.ruff.lint.flake8-tidy-imports]
|
||||||
ban-relative-imports = "all"
|
ban-relative-imports = "all"
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
# Tests can use magic values, assertions, and relative imports
|
# Tests can use magic values, assertions, and relative imports
|
||||||
"tests/**/*" = ["PLR2004", "S101", "TID252"]
|
"tests/**/*" = ["PLR2004", "S101", "TID252"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue