Skip to content

Enforce 100% public type coverage - #2234

Open
jorenham wants to merge 1 commit into
zeromq:mainfrom
jorenham:ci/pyrefly-coverage-check
Open

jorenham wants to merge 1 commit into
zeromq:mainfrom
jorenham:ci/pyrefly-coverage-check

Conversation

@jorenham

@jorenham jorenham commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Now that zmq has 100% public type coverage, we should probably ensure that it stays that way :)

This adds a pre-commit hook that runs pyrefly coverage check --public-only, which will fail if type coverage falls below 100% (docs).
I excluded zmq/tests/, because it didn't look to me like it was intended to be public API. But if you want it typed regardless, then I'd be happy to work on that :)

There's no official pyrefly coverage pre-commit hook yet, so this uses a local hook for the time being.

FWIW: we've been using pyrefly coverage check for a while now in NumPy, and it has been smooth sailing so far.

  • I wrote this (no AI-generated code or text is included in this PR or its description)
  • any code changes are tested, if possible

This branch has not been deployed

No deployments
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