Repository navigation
pants-pyrefly 1.2.0
Adds support for Python 3.15 projects and makes Pyrefly 1.4.1 the default. No breaking changes: the goals, [pyrefly] options, and skip_pyrefly field behave as before, and every version pinned in 1.1.1 is still pinned. To stay on the old default, set [pyrefly].version = "1.4.0".
- Python 3.15 projects are supported on Pants 2.31 and newer, once
"3.15"is added to[python].interpreter_versions_universe(no Pants release includes it yet). The compatibility suite now checks aCPython==3.15.*project. On Pants 2.27–2.30, the pex that Pants bundles cannot run on Python 3.15, so Pants fails before Pyrefly runs. - The
[pyrefly].interpreter_constraintsfallback, used only for a target with no interpreter constraints of its own, is nowCPython>=3.9,<3.16(was<3.15). - The default pinned Pyrefly is now 1.4.1 (was 1.4.0); 1.4.0 stays pinned. The release notes list changes only to
pyrefly coverage(see the Pyrefly 1.4.1 release notes), sopants checkshould report the same errors, butpants pyrefly-coveragecan report a different percentage: results are now the same on every run, functions and classes excluded with@type_check_onlyor@no_type_checkare no longer counted as untyped variables, and a variable assigned an explicitly parameterized constructor call (x = set[int]()) counts as typed.