A clean first run can use a limited preset
Pyrefly can fall back to a basic preset that silences diagnostics outside selected error kinds. For a Python team replacing an existing type checker, that behavior makes configuration review more useful than celebrating an empty error list. Establish what was checked before deciding the new checker has accepted your code.
The Pyrefly README describes a Python type checker and language server with code navigation, completion and semantic highlighting. It documents a CLI and integrations for VS Code, Neovim and Zed. Having checking and editor assistance in one project is a practical reason to evaluate it, particularly if your team wants to investigate diagnostics while editing and enforce agreed rules in CI.
Upstream also advertises checking speed. Compiling a Rust repository and checking a Python application are different workloads. Use your application diagnostics to decide whether switching checkers helps your team.
What happened when we ran it
Our Pyrefly installation completed in 23 seconds and its source build in 307 seconds, but tests timed out after 900 seconds. The run used commit 4db6112 on 2026-10-06 and recorded 420 dependencies. The successful build gives contributors a starting point, but the timeout leaves the source validation unfinished.
| Step | Our recorded result |
|---|---|
| Install | Succeeded in 23 seconds, 420 dependencies recorded |
| Build | Succeeded in 307 seconds |
| Tests | Timed out after 900 seconds |
The supplied test tail shows successful language-server code-action cases, including boolean inversion, parameter introduction and moving local functions to the top level. The visible lines end in ok. No final suite summary or exception explains the timeout. The tail identifies no stalled case or package error that explains the time limit.
The recorded sandbox configuration specifies 3 CPUs, 12 GB RAM and image lab-rust:1. The checkout scan recorded 10,144 files, roughly 634,799 source lines and 73.5 MB, with 32 CI workflows and a tests directory. It found no Dockerfile. These are repository observations, rather than requirements for using the packaged checker.
Contributors should budget for a validation attempt beyond this sandbox's limit. Python application developers need a different trial: running the packaged checker on representative code.
Review the generated configuration before comparing diagnostics
The configuration reference says Pyrefly can migrate nearby Mypy or Pyright configuration in memory when no Pyrefly configuration governs a file. If no suitable configuration is found, or migration fails, Pyrefly uses a basic preset that enables selected high-confidence error kinds and silences other diagnostics. A clean result therefore needs context.
The README provides pyrefly init as a migration entry point. Review its output and commit an explicit configuration before changing CI. In particular, project-includes determines which files to check, while search-path concerns import resolution. A diagnostic disappearing because its file wasn't selected says nothing about whether the underlying code is correct.
Configuration can live in pyrefly.toml or the tool.pyrefly section of pyproject.toml. The reference also explains that the language server searches for configuration separately for each source and imported file, whereas a project-mode CLI run uses one configuration. It warns that IDE and CLI results can differ. Include imports outside the immediate source tree in your trial if that matches your application's layout.
Even patch upgrades can change accepted code
Pyrefly's version policy says any version may introduce new type errors or other breaking changes. The current README calls the project stable, but explicitly rejects strict semantic versioning. Teams that require patch upgrades to preserve their diagnostic baseline should take that policy seriously. Pin the checker and review upgrades as changes to CI rules.
The documented suppression commands can help stage adoption. They also create exceptions you will need to understand later. Compare disagreements with the existing checker before suppressing them, and distinguish a deliberate exception from code that passed without an ignore. Otherwise migration can produce a clean job while leaving its most consequential decisions unexplained.
The last push was November 12, 2026. The same day, issue #5632 reported that conditional dictionary unpacking loses LiteralString key types: direct unpacking was accepted, while conditional unpacking was rejected. The issue was open when inspected, with no resolution recorded. Recent pushes and concrete bug reports show ongoing work, rather than a finished diagnostic surface.
Pyrefly vs Mypy and Pyright: compare accepted diagnostics
Mypy is designed for gradual typing. Its README makes it relevant when adding annotations gradually is already an accepted workflow. Keeping it while evaluating Pyrefly lets you investigate disagreements without immediately changing what colleagues must fix before merging.
Pyright documents a command-line tool and a VS Code extension. Its README gives another candidate for teams choosing editor and CI tooling. These are workflow choices, without a comparative speed or accuracy ranking. The review leaves the four product ratings unassessed rather than turning a source-build result into a score for daily use.
What we have not tested yet
Community research was not collected. Our source run supplies no application-checking benchmark, editor-latency measurement, packaged-install result or side-by-side comparison with Mypy and Pyright. Actual runtime and operating-system versions require the raw toolchain logs, which are absent from this record. We also have no production workload or assessment of maintainer support capacity.
Start with a pinned Pyrefly version, explicit file scope and reviewed import roots. Run it beside your accepted checker and examine disagreements. Switch the CI requirement when you can explain the changed diagnostics to the developer whose next merge depends on them.

