Repository navigation
Run Pyrefly in CI - #14499
Run Pyrefly in CI#14499
Conversation
|
filed a few tracking issues to pyrefly. I don't think any of these should be blocking, when they get fixed (hopefully by the next release) and this project upgrades the version, the suppressions can be cleaned up with pyrefly-org/pyrefly#4481 |
|
I'm not the most versed in type checking, so weight my opinion appropriately, but I think we should eventually merge this, but it should run along side the pinned Pyrefly's |
# Conflicts: # pyproject.toml # pyrefly.toml # sphinx/builders/gettext.py # sphinx/environment/adapters/toctree.py # sphinx/ext/autodoc/_sentinels.py # sphinx/ext/napoleon/__init__.py # sphinx/util/inspect.py # uv.lock
|
thanks @yangdanny97, but let's add pyrefly in CI instead of replacing Ty |
|
thanks @yangdanny97! A |
Per discussion on #14496, this PR replaces the ty github action with pyrefly, another Rust-based Python type checker.
Pyrefly was already included as a development dependency, but it was not pinned to a specific version. This PR pins it to 1.1.1, so that updates do not break the CI unless maintainers choose to upgrade. The local Pyrefly configuration has been updated to better-reflect mypy's configurations, and newly-introduced errors have been suppressed (~50 total).
closes #14496
fixes #14238