Skip to content

Commit cc295c0

Browse files
committed
Exclude type checking lines from coverage report
1 parent ee30ada commit cc295c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ line-length = 79
9393

9494
branch = true
9595

96+
[tool.coverage.report]
97+
98+
exclude_lines = [
99+
"pragma: no cover",
100+
"if TYPE_CHECKING:",
101+
]
102+
96103
[tool.pytest.ini_options]
97104

98105
xfail_strict = true

0 commit comments

Comments
 (0)