-
-
Notifications
You must be signed in to change notification settings - Fork 24
⚡️ Preliminary support for Pyrefly #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces preliminary support for the Pyrefly type checker by adding Pyrefly-specific type ignore comments throughout the codebase and configuring the necessary tooling. Pyrefly is Facebook's new type checker currently in alpha.
- Added Pyrefly configuration in pyproject.toml with sub-configurations for different file patterns
- Integrated Pyrefly into the CI/CD pipeline (tox, GitHub Actions, lefthook)
- Added type ignore comments for Pyrefly-specific errors across test files and stub files
Reviewed Changes
Copilot reviewed 33 out of 34 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Added Pyrefly dependency and configuration settings |
| lefthook.yml | Added Pyrefly pre-commit hook |
| .github/workflows/ci.yml | Integrated Pyrefly checks into CI pipeline |
| README.md | Updated documentation to mention Pyrefly support |
| CONTRIBUTING.md | Updated example output to include Pyrefly |
| Multiple test files | Added # pyrefly: ignore comments for various error types |
| Multiple stub files | Added Pyrefly ignore comments for override and type alias issues |
https://github.com/facebook/pyrefly