Add ANN20X rules to ruff

This commit is contained in:
Julian Stirling 2025-08-27 14:00:49 +01:00
parent d673196671
commit 4c46330959
20 changed files with 98 additions and 86 deletions

View file

@ -126,7 +126,7 @@ select = [
"N", # PEP8 naming
"D", # Docstring checks
"ERA001", # Commented out code!
"ANN001", "ANN002", "ANN003",
"ANN",
]
ignore = [
@ -134,7 +134,9 @@ ignore = [
"D203", # incompatible with D204
"D213", # incompatible with D212
"D400", # A stricter version of #415 that doesn't allow !
# The checkers below should be turned on as they complain about missing docstrings.
"ANN204", # Requrite type hints for
"ANN401", # Disalows Any, Any is needed at times, Once MyPy is running Any will be
# handled appropriately
]
[tool.ruff.lint.per-file-ignores]