Skip to content

Conversation

@maxisbey
Copy link
Contributor

Add strict-no-cover from pydantic to the CI pipeline. This tool identifies # pragma: no cover comments on lines that are actually covered by tests, helping keep coverage pragmas accurate.

Changes

  • Add strict-no-cover as dev dependency (installed from git)
  • Add pragma: lax no cover to coverage exclude_lines for partial coverage scenarios
  • Add CI step to run strict-no-cover after coverage report (skips Python 3.14 since the package doesn't support it yet)

How it works

  • # pragma: no cover - errors if any marked lines are actually covered
  • # pragma: lax no cover - permits partial coverage without erroring (useful for flaky or inconsistently covered code)

Add strict-no-cover from pydantic to CI pipeline. This tool identifies
`# pragma: no cover` comments on lines that are actually covered by
tests, helping keep coverage pragmas accurate.

Changes:
- Add strict-no-cover as dev dependency (installed from git)
- Add `pragma: lax no cover` to coverage exclude_lines for partial coverage
- Add CI step to run strict-no-cover after coverage report
@maxisbey maxisbey force-pushed the add-strict-no-cover branch from 6f96e17 to 78d6633 Compare January 16, 2026 14:47
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.

2 participants