Skip to content

pants-pyrefly 1.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:19
· 7 commits to main since this release
22e5b35

Pins Pyrefly 1.5.0 and makes it the default. No plugin code changes: the goals, [pyrefly] options, and skip_pyrefly field behave as before. Every version pinned in 1.2.0 is still pinned; to stay on the old default, set [pyrefly].version = "1.4.1".

  • The default pinned Pyrefly is now 1.5.0 (was 1.4.1); 1.4.1 stays pinned. The newer Pyrefly changes what some builds report (see the Pyrefly 1.5.0 release notes):
    • Warnings are printed by default, e.g. uses of deprecated APIs, redundant-cast, and unnecessary-type-conversion. They do not change the exit code, so pants check passes or fails as before, and pants pyrefly-update-baseline and pants pyrefly-suppress ignore them. To hide them, set [pyrefly].min_severity = "error".
    • Annotations look up names in the enclosing class body first, and uninitialized names and illegal circular references in annotations are now reported, which can surface errors 1.4.1 did not report.
    • unreachable now defaults to the new IDE-only hint severity (was warn), so it no longer appears in pants check output unless configured as "warn" or "error".