Skip to content

Commit

Permalink
Exclude if TYPE_CHECKING from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Nov 22, 2024
1 parent a8ae436 commit 3fb15b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ ignore = ["B008"]
[tool.ruff.lint.mccabe]
max-complexity = 10

[tool.coverage.report]
exclude_also = [
# Imports only used by type checkers
"if TYPE_CHECKING:",
]

[tool.poetry-dynamic-versioning]
enable = true
style = "pep440"
Expand Down

0 comments on commit 3fb15b9

Please sign in to comment.