refactor: Compiled ignored ruff rules in pyproject

This commit is contained in:
JSC
2025-08-01 09:40:15 +02:00
parent fceff92ca1
commit f68f4d9046
30 changed files with 22 additions and 31 deletions

View File

@@ -43,8 +43,28 @@ exclude = ["alembic"]
select = ["ALL"]
ignore = ["D100", "D103", "TRY301"]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["S101", "S105"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # Use of assert detected
"S105", # Possible hardcoded password
"S106", # Possible hardcoded password
"ANN001", # Missing type annotation for function argument
"ANN003", # Missing type annotation for **kwargs
"ANN201", # Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"ARG005", # Unused lambda argument
"BLE001", # Do not catch blind exception
"E501", # Line too long
"PLR2004", # Magic value used in comparison
"PLC0415", # `import` should be at top-level
"SLF001", # Private member accessed
"SIM117", # Use a single `if` statement
"PT011", # `pytest.raises()` is too broad
"PT012", # `pytest.raises()` block should contain a single simple statement
]
[tool.pytest.ini_options]
filterwarnings = [