Skip to content

chore: give every coverage pragma a reason (TS6) - #91

Merged
lesnik512 merged 1 commit into
mainfrom
chore/pragma-reasons
Sep 27, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
chore/pragma-reasons

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Brings the coverage pragmas in line with TS5 and TS6: every # pragma: no cover now carries its reason on the same line. exclude_also was already exactly ["if typing.TYPE_CHECKING:"] and no file is excluded, so TS5 needed no change.

Counts: 0 tested / 0 deleted / 4 reasoned.

  • tests/test_integration.py: the phase-2 handler_a2 / handler_b2 run only if committed offsets replay, which the test asserts never happens.
  • tests/test_kafka_committer.py: the _drive_until timeout (2 lines) runs only when a test fails. A test of the test helper itself would add nothing meaningful, so the pragma stays.

Local checks

  • just install: ok
  • just lint-ci: pass
  • just test-ci inside the compose application container against Redpanda: 216 passed, 100 % coverage

@lesnik512
lesnik512 merged commit 2a84389 into main Sep 27, 2026
11 checks passed
@lesnik512
lesnik512 deleted the chore/pragma-reasons branch September 27, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant