Skip to content

Commit

Permalink
chore: add ruff checks for type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjholland committed Feb 23, 2025
1 parent b1d4b95 commit d2317cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ select = [
"UP", # pyupgrade: Check for outdated Python syntax
"T20", # flake8-print: Check for print statements
"N", # pep8-naming: Check for naming conventions
"ANN", # flake8-annotations: Check for missing type annotations
]
ignore = ["ANN401"]

[tool.ruff.lint.pydocstyle]
convention = "google"
Expand All @@ -124,8 +126,8 @@ keep-runtime-typing = true

[tool.ruff.lint.per-file-ignores]
"docs/source/conf.py" = ["A"]
"tests/*" = ["SLF001", "N", "B"]
"docs/source/examples/*" = ["D103", "T20", "N"]
"tests/*" = ["SLF001", "N", "B", "ANN"]
"docs/source/examples/*" = ["D103", "T20", "N", "ANN"]
"pyprobe/analysis/degradation_mode_analysis.py" = ["N"]
"pyprobe/analysis/base/degradation_mode_analysis_functions.py" = ["N"]

Expand Down

0 comments on commit d2317cc

Please sign in to comment.