Skip to content
pyrefly-orgPublic

Latest commit

 

History

18,300 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyrefly: A fast type checker and language server for Python with powerful IDE features

pyrefly PyPI VS Code Open VSX Discord License: MIT

Pyrefly is a type checker and language server for Python, written in Rust. It provides fast type checking along with IDE features such as code navigation, semantic highlighting, and code completion.

Who Uses Pyrefly

If your project uses Pyrefly, create an issue to add it to this list.

Key Features

  • Fast. Pyrefly checks over 1.85 million lines of code per second, type checking projects like PyTorch 15x faster than Mypy and Pyright. In the IDE, rechecks typically complete in under 10 milliseconds after saving a file.
  • Full-featured language server. Go-to-definition, autocomplete, hover, inlay hints, semantic highlighting, and more, with consistent results across the CLI and your editor.
  • Editor support. VS Code, Neovim, Zed, and more.
  • Understands real-world Python. Built-in support for Pydantic, Django, and pytest.
  • Tensor shape checking. Experimental tensor shape checking finds shape mismatches in PyTorch code.
  • Adoption-ready. Migrate from Mypy or Pyright with pyrefly init, silence existing errors with pyrefly suppress, and add annotations with pyrefly infer. Start with one file and grow at your own pace.

Pyrefly is stable. See the Pyrefly website for full documentation.

Getting Started

Version Policy

Pyrefly releases new minor versions (1.x.0) monthly and patch versions in between as-needed for critical fixes. Pyrefly does not follow strict semantic versioning: minor versions contain more significant changes than patch versions, but any version may introduce new type errors and other breaking changes. The pyrefly suppress command can be used to easily silence errors when upgrading to a new version.

Getting Involved

If you have questions or would like to report a bug, please create an issue.

See our contributing guide and architecture overview for information on how to contribute to Pyrefly.

Join our Discord to chat about Pyrefly and types. This is also where we hold biweekly office hours.