pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

[feature] command for measuring type annotation coverage (pyrefly report)

Open yangdanny97 opened this issue 8 months ago • 7 comments

Something like pyright's --verifytypes or mypy's --report. The latter generates XML/HTML coverage reports

https://mypy.readthedocs.io/en/stable/config_file.html#report-generation

yangdanny97 avatar Jun 16 '25 16:06 yangdanny97

This issue has someone assigned, but has not had recent activity for more than 2 weeks.

If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.

Thank you for your contributions!

github-actions[bot] avatar Aug 02 '25 00:08 github-actions[bot]

Still working on this!

maggiemoss avatar Aug 11 '25 18:08 maggiemoss

This issue has someone assigned, but has not had recent activity for more than 2 weeks.

If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.

Thank you for your contributions!

github-actions[bot] avatar Aug 26 '25 00:08 github-actions[bot]

This issue has someone assigned, but has not had recent activity for more than 2 weeks.

If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.

Thank you for your contributions!

github-actions[bot] avatar Nov 12 '25 00:11 github-actions[bot]

I tried to impl this https://github.com/asukaminato0721/pyrefly/tree/496

asukaminato0721 avatar Nov 29 '25 10:11 asukaminato0721

It's undocumented right now, but I believe there's a basic implementation already in pyrefly, you should be able to see it if you run pyrefly report

yangdanny97 avatar Nov 29 '25 15:11 yangdanny97

I found it, and added a bit html output for it :P

def foo(x: int):
    ...
def bar(x):
    ...
foo(1)

will generate this html

index.html

asukaminato0721 avatar Nov 29 '25 18:11 asukaminato0721