Skip to content

Commit 46724fd

Browse files
committed
Tighten coverage to 90% on production code only
Coverage source now excludes tests/ so the reported percentage reflects production code, not test boilerplate. The fail_under threshold moves from 50% to 90%, matching the actual 98% coverage with room for new code that isn't immediately testable.
1 parent 01123b8 commit 46724fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ select = [
7777
[tool.coverage.run]
7878
branch = true
7979
parallel = true
80-
source = ["src/", "tests/"]
80+
source = ["src/"]
8181

8282
[tool.coverage.report]
8383
show_missing = true
8484
skip_covered = true
85-
fail_under = 50
85+
fail_under = 90
8686
exclude_also = [
8787
"if TYPE_CHECKING:",
8888
"if typing.TYPE_CHECKING:",

0 commit comments

Comments
 (0)