Skip to content

public symbol filtering with pyrefly report --public-only #3104#3162

Closed
jorenham wants to merge 5 commits into
facebook:mainfrom
jorenham:gh-3104
Closed

public symbol filtering with pyrefly report --public-only #3104#3162
jorenham wants to merge 5 commits into
facebook:mainfrom
jorenham:gh-3104

Conversation

@jorenham
Copy link
Copy Markdown
Contributor

Summary

In #3104 I proposed that pyrefly report also includes an export graph so we'd be able to figure out in typestats what the public symbols are as post-processing step.

With this change, that is no longer needed. Because now, pyrefly report --public-only will report only the public symbols, using the cross-module tracing algorithm from typestats.

Right now this is opt-in. But we could also make this the default, and instead add a --include-private flag or something. Thoughts?

Fixes #3104

Test Plan

Tests added

@github-actions

This comment has been minimized.

@connernilsen
Copy link
Copy Markdown
Contributor

Hey @stroxler, are you familiar with Pyrefly report? Would you be able to take a look at this?

1 similar comment
@connernilsen
Copy link
Copy Markdown
Contributor

Hey @stroxler, are you familiar with Pyrefly report? Would you be able to take a look at this?

@github-actions

This comment has been minimized.

@migeed-z migeed-z self-assigned this Apr 20, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Apr 20, 2026

@migeed-z has imported this pull request. If you are a Meta employee, you can view this in D101673000.

Copy link
Copy Markdown
Contributor

@connernilsen connernilsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jorenham, thanks for doing this! I have a few recommendations, but can you rebase and re-request review once you're ready again?

Comment thread pyrefly/lib/commands/report.rs Outdated
Comment thread pyrefly/lib/commands/report.rs Outdated
Comment thread pyrefly/lib/commands/report.rs
@github-actions

This comment has been minimized.

Comment thread pyrefly/lib/commands/report.rs
@jorenham jorenham requested a review from migeed-z April 21, 2026 17:37
@github-actions github-actions Bot added size/xl and removed size/xl labels Apr 21, 2026
@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Contributor

@grievejia grievejia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@jorenham
Copy link
Copy Markdown
Contributor Author

@grievejia sorry but I can't see your review

@migeed-z
Copy link
Copy Markdown
Contributor

also adding @grievejia's remarks to the review

Comment thread pyrefly/lib/commands/report.rs
Comment thread pyrefly/lib/commands/report.rs
Comment thread pyrefly/lib/commands/report.rs
Copy link
Copy Markdown
Contributor

@migeed-z migeed-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jia's comments

@github-actions github-actions Bot removed the size/xl label Apr 23, 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. ✅

Copy link
Copy Markdown
Contributor

@grievejia grievejia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Apr 25, 2026

@migeed-z merged this pull request in 947a3ee.

@jorenham jorenham deleted the gh-3104 branch April 25, 2026 14:37
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.

pyrefly report: (re-)exports

4 participants