Skip to content

pants-pyrefly 1.2.0

Choose a tag to compare

@tague tague released this 09 Nov 20:21
· 10 commits to main since this release
09325e2

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 a CPython==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_constraints fallback, used only for a target with no interpreter constraints of its own, is now CPython>=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), so pants check should report the same errors, but pants pyrefly-coverage can report a different percentage: results are now the same on every run, functions and classes excluded with @type_check_only or @no_type_check are no longer counted as untyped variables, and a variable assigned an explicitly parameterized constructor call (x = set[int]()) counts as typed.