Skip to content

Commit 5be328a

Browse files
committed
project: Ignore type checking in coverage
When running code coverage checks, ignore the special casing for TYPE_CHECKING Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 3585a73 commit 5be328a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ omit = [
5555
omit = [
5656
"*/tmp/*",
5757
]
58+
exclude_lines = [
59+
# Don't complain about type checking imports:
60+
"if TYPE_CHECKING:"
61+
]
5862

5963
[tool.coverage.paths]
6064
source = [

0 commit comments

Comments
 (0)