Skip to content

Commit

Permalink
Exclude TYPE_CHECKING blocks from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Nov 16, 2023
1 parent dd0cb18 commit 011577a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ tests = [
ixmp = "ixmp.cli:main"

[tool.coverage.report]
exclude_also = [
# Imports only used by type checkers
"if TYPE_CHECKING:",
]
omit = ["ixmp/utils/sphinx_linkcode_github.py"]

[tool.isort]
Expand Down

0 comments on commit 011577a

Please sign in to comment.