Add ANN20X rules to ruff
This commit is contained in:
parent
d673196671
commit
4c46330959
20 changed files with 98 additions and 86 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue