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] [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"]