Skip to content

Commit eeca5bf

Browse files
committed
Do not run coverage on TYPE_CHECKING imports
1 parent faac7cd commit eeca5bf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,11 @@ ignore = [
119119
"S101",
120120
]
121121

122-
line-length = 79
122+
line-length = 79
123+
124+
[tool.coverage.report]
125+
126+
exclude_lines = [
127+
"pragma: no cover",
128+
"if TYPE_CHECKING:",
129+
]

0 commit comments

Comments
 (0)