Enable flake8-annotations linting rules (#267)

See https://docs.astral.sh/ruff/rules/#flake8-annotations-ann.
This commit is contained in:
Marc Wrobel
2023-12-30 10:38:17 +01:00
parent 0e8fe135e4
commit f49e3dff15
12 changed files with 51 additions and 47 deletions

View File

@@ -1,4 +1,5 @@
select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C90", # mccabe
"E", # pycodestyle errors
@@ -13,5 +14,6 @@ select = [
"YTT", # flake8-2020
]
extend-ignore = [
"ANN101", # Missing type annotation for self in method
"E501", # Line too long
]