Skip to content

Commit 0aaacf5

Browse files
Include ci/ in coverage source for 100% requirement (#3131)
* Include ci/ in coverage source Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Use setdefault to collect patterns per test Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1209106 commit 0aaacf5

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

ci/test_custom_linters.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ def test_tests_collected_once(request: pytest.FixtureRequest) -> None:
103103
for pattern in ci_patterns:
104104
tests = _tests_from_pattern(ci_pattern=pattern)
105105
for test in tests:
106-
if test in tests_to_patterns:
107-
tests_to_patterns[test].add(pattern)
108-
else:
109-
tests_to_patterns[test] = {pattern}
106+
tests_to_patterns.setdefault(test, set()).add(pattern)
110107

111108
for test_name, patterns in tests_to_patterns.items():
112109
message = (

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ run.omit = [
374374
"src/mock_vws/_flask_server/healthcheck.py",
375375
]
376376
run.parallel = true
377-
run.source = [ "src/", "tests/" ]
377+
run.source = [ "ci/", "src/", "tests/" ]
378378
report.exclude_also = [
379379
"class .*\\bProtocol\\):",
380380
"if TYPE_CHECKING:",

0 commit comments

Comments
 (0)