Skip to content

Commit

Permalink
Enforce ruff/flake8-annotations rules (ANN)
Browse files Browse the repository at this point in the history
Disable lots of rules for now, especially in tests.
  • Loading branch information
DimitriPapadopoulos committed Sep 27, 2024
1 parent 2f441e1 commit 06daa20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ extend-exclude = [

[tool.ruff.lint]
extend-select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"FLY", # flynt
Expand All @@ -222,6 +223,10 @@ extend-select = [
"UP", # pyupgrade
]
ignore = [
"ANN003",
"ANN101",
"ANN102",
"ANN401",
"PT004", # deprecated
"PT011", # TODO: apply this rule
"PT012", # TODO: apply this rule
Expand All @@ -247,6 +252,9 @@ ignore = [
"ISC002",
]

[tool.ruff.lint.extend-per-file-ignores]
"tests/**" = ["ANN001", "ANN201"]

[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
Expand Down

0 comments on commit 06daa20

Please sign in to comment.