mrkeyoor.comAsk

facebook/pyreflytested 06 Oct 2026commit 4db6112

pyrefly review

Our Pyrefly source build took 307 seconds, and tests timed out after 900 seconds without a complete suite result.

  • Build 307 s
  • Tests timed out
23 sto install
  • 420 packages
Dev Toolsevaluationupdated 12 Nov 2026
+14stars / 7d

Pyrefly checks Python code for type mistakes and supplies editor features such as navigation and completion. It combines a command-line checker with a language server, so developers can evaluate feedback in their editor and CI.

Verdict

Our Pyrefly source build took 307 seconds, and tests timed out after 900 seconds without a complete suite result. Try a pinned version alongside your existing checker if you want its combined CLI and editor workflow. Make configuration and diagnostic differences part of the trial before changing a CI requirement.

We ran it

Lab card: what happened when we ran pyrefly
Lab card from our sandbox run
Screenshot of pyrefly (pyrefly.org)
pyrefly.org
Install✓ · 23s420 packages
Build✓ · 307s
Tests✗ timed out · 900sran, no count parsed
Repo10144 files~634,799 lines of source · 73.5 MB · 32 CI workflows · tests dir

Answers from our run

Does pyrefly build from source?

Dependencies installed in 23 seconds (420 packages), and the build succeeded in 307 seconds. We cloned commit 4db6112 into a clean Debian container with 3 CPUs and no project-specific setup.

Do pyrefly's tests pass?

We could not finish them: the suite was still running after 15 minutes in our container.

Who should not use pyrefly?

Teams expecting strict semantic-versioning guarantees: Pyrefly says any version may introduce new type errors or breaking changes.

What are the alternatives to pyrefly?

Mypy, Pyright. Our Pyrefly source build took 307 seconds, and tests timed out after 900 seconds without a complete suite result.

Setup3/5Our source checkout installed in 23 s and built in 307 s, a heavy install of 420 dependencies, and we did not run a README task.Editor’s note: Source installation completed, but packaged CLI installation and editor setup were not reproduced in a supported environment.
Docs3/5The README has an install section (“Getting Started”) and usage in the same section, but the usage section is thin: no code and under 400 characters.Editor’s note: Configuration and version-policy documentation was inspected; its practical accuracy on a representative Python project was not assessed.
Community3/5Last push on 2026-11-12, 7,201 stars and 543 open issues and pull requests is a heavy backlog for its size.Editor’s note: Recent issue and repository activity was read, but support response times and maintainer capacity were not evaluated.
Maturity3/5Latest release 1.4.1 on 2026-11-05, repository created 2025-02-19 and its test suite timed out in our sandbox.Editor’s note: The source build passed, but the suite timed out and no application-checking or editor workload was measured.

How we score

Discussed on

  1. hnMeta's Pyrefly sabotages competing Python extensions without telling you52 points
  2. hnPyrefly 1.07 points
  3. hnPyrefly v1.4.03 points
  4. hnPyrefly – A fast type checker and IDE for Python3 points
  5. hnPyrefly – A fast type checker and IDE for Python3 points

Who it’s for

Python teams willing to compare a pinned checker against their current diagnostics before changing CI.
Developers who want type checking and language-server features from the same project.
Rust contributors prepared for a source build and an upstream suite that exceeded our sandbox time limit.

Who it’s NOT for

Teams expecting strict semantic-versioning guarantees: Pyrefly says any version may introduce new type errors or breaking changes.
Developers treating an unconfigured clean run as full checking: the documented fallback basic preset silences diagnostics outside its selected error kinds.
Teams requiring a completed upstream suite in a short contributor check: our source tests timed out after 900 seconds.
Teams unwilling to inspect a new configuration: Pyrefly can migrate nearby Mypy or Pyright settings in memory, or fall back to a preset that silences some diagnostics.

Setup reality

Our October 6, 2026 run at commit 4db6112 completed installation in 23 seconds with 420 dependencies recorded and built in 307 seconds. Tests timed out after 900 seconds. The supplied tail shows passing language-server code-action cases, without a final suite result or a demonstrated cause for the timeout.

The README documents a packaged CLI and editor integrations. The documented CLI workflow does not call for a hosted service or API key. For your project, configure file scope and import roots in pyrefly.toml or the tool.pyrefly section of pyproject.toml. The basic fallback can silence diagnostics, so inspect the selected configuration before making CI depend on it.

Our source-check sandbox specified 3 CPUs, 12 GB RAM and image lab-rust:1. Actual toolchain and operating-system versions are not established by that label. These timings do not measure package setup, editor latency or type-checking speed on an application.

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.

Alternatives

ProjectWhat it isPick it when
Mypy gh↗A Python static type checker designed for gradual typing.Keep or evaluate Mypy when gradual annotation of existing Python code is the main need and you do not want to change an accepted diagnostic baseline without evidence.
PyrightA Python static type checker with a CLI and a VS Code extension.Evaluate Pyright when that CLI and editor route fits your workflow, or retain it while you compare Pyrefly on the same code and configuration scope.

Sources

  1. Pyrefly README
  2. Configuration reference
  3. Mypy README
  4. Pyright README
  5. Conditional dictionary unpacking report, issue #5632
  6. Pyrefly repository metadata
  7. Latest release, 1.4.1

More dev tools reviews