Skip to content

Commit 4853c79

Browse files
committed
Ignore import and typing lines for coverage
1 parent ef1477c commit 4853c79

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

codecov.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,16 @@ ignore:
5757
- "frontend/src/**/*.spec.js"
5858
- "frontend/src/setupTests.js"
5959
- "frontend/src/index.js"
60+
61+
# Exclude patterns for lines with low testing value
62+
# Note: These patterns work with coverage.py's exclude_lines configuration
63+
# and should match patterns in pyproject.toml [tool.coverage.report]
64+
parsers:
65+
python:
66+
# Skip import lines - low value to cover
67+
skip:
68+
- "^from .+ import .+$"
69+
- "^import .+$"
70+
# Skip type checking blocks
71+
skip_branches:
72+
- "if TYPE_CHECKING:"

0 commit comments

Comments
 (0)