Skip to content

Commit f75aecf

Browse files
treyshafferclaude
andcommitted
Configure codecov to only check src/ files for patch coverage
The codecov/patch check was failing at 96.42% because it was checking coverage of test files in addition to source files. Test files with conditional imports (like pytest.importorskip("xdist")) would be skipped in some CI configurations, causing those test lines to appear as "not covered". This change configures codecov to only require 100% coverage for source files (src/), which is the standard practice. Test file coverage should not be required. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a047235 commit f75aecf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ coverage:
99
patch:
1010
default:
1111
target: 100% # require patches to be 100%
12+
paths:
13+
- "src/" # only check source files, not test files
1214
project: false
1315
comment: false

0 commit comments

Comments
 (0)