Skip to content

Commit 06daa20

Browse files
Enforce ruff/flake8-annotations rules (ANN)
Disable lots of rules for now, especially in tests.
1 parent 2f441e1 commit 06daa20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ extend-exclude = [
206206

207207
[tool.ruff.lint]
208208
extend-select = [
209+
"ANN", # flake8-annotations
209210
"B", # flake8-bugbear
210211
"C4", # flake8-comprehensions
211212
"FLY", # flynt
@@ -222,6 +223,10 @@ extend-select = [
222223
"UP", # pyupgrade
223224
]
224225
ignore = [
226+
"ANN003",
227+
"ANN101",
228+
"ANN102",
229+
"ANN401",
225230
"PT004", # deprecated
226231
"PT011", # TODO: apply this rule
227232
"PT012", # TODO: apply this rule
@@ -247,6 +252,9 @@ ignore = [
247252
"ISC002",
248253
]
249254

255+
[tool.ruff.lint.extend-per-file-ignores]
256+
"tests/**" = ["ANN001", "ANN201"]
257+
250258
[tool.mypy]
251259
python_version = "3.11"
252260
ignore_missing_imports = true

0 commit comments

Comments
 (0)