Skip to content

Commit 12117fa

Browse files
committed
Exclude type checking blocks from code coverage report
1 parent 335661f commit 12117fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ line-length = 79
9292

9393
branch = true
9494

95+
[tool.coverage.report]
96+
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
97+
9598
[tool.pytest.ini_options]
9699

97100
xfail_strict = true

0 commit comments

Comments
 (0)