Skip to content

Always print coverage findings in pyrefly coverage check --fail-under=#4156

Open
jorenham wants to merge 2 commits into
facebook:mainfrom
jorenham:coverage/always-emit-warnings
Open

Always print coverage findings in pyrefly coverage check --fail-under=#4156
jorenham wants to merge 2 commits into
facebook:mainfrom
jorenham:coverage/always-emit-warnings

Conversation

@jorenham

Copy link
Copy Markdown
Contributor

Summary

Right now, pyrefly coverage report --fail-under=<something below 100> does not print the findings if the coverage is above the threshold. I think it would be more useful if those findings would be printed regardless of whether it passes (i.e. exits 0). And if the user doesn't want to see those findings for some reason, then they could always use the existing --output-format=omit-errors flag to disable this.

Test Plan

Manually verified that the missing coverage warnings are now always emitted.

@meta-cla meta-cla Bot added the cla signed label Jul 15, 2026
@jorenham jorenham changed the title Coverage/always emit warnings Emit config warnings in pyrefly coverage Jul 15, 2026
@jorenham jorenham changed the title Emit config warnings in pyrefly coverage Always print coverage findings in pyrefly coverage check --fail-under= Jul 15, 2026
@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant