other: Put ruff linter settings in lint section as recommended by ruff

This commit is contained in:
June 2024-06-06 00:54:56 +02:00
parent 7cfa2726d3
commit 3410f647f5
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -87,6 +87,8 @@ skip-string-normalization = true
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = [
"A",
"ARG",
@ -129,13 +131,13 @@ unfixable = [
"F401",
]
[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["infra_rebuild"]
[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
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/**/*" = ["PLR2004", "S101", "TID252"]