https://github.com/facebook/pyre-check
Performant type-checking for python.
https://github.com/facebook/pyre-check
abstract-interpretation code-quality control-flow-analysis ocaml program-analysis python security static-analysis taint-analysis type-check typechecker
Last synced: about 1 month ago
JSON representation
Performant type-checking for python.
- Host: GitHub
- URL: https://github.com/facebook/pyre-check
- Owner: facebook
- License: mit
- Archived: true
- Created: 2017-11-10T17:31:36.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2026-06-26T16:04:19.000Z (5 months ago)
- Last Synced: 2026-10-05T11:18:01.368Z (about 2 months ago)
- Topics: abstract-interpretation, code-quality, control-flow-analysis, ocaml, program-analysis, python, security, static-analysis, taint-analysis, type-check, typechecker
- Language: OCaml
- Homepage: https://pyre-check.org/
- Size: 568 MB
- Stars: 7,171
- Watchers: 114
- Forks: 450
- Open Issues: 167
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.es.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Roadmap: ROADMAP.md
- Agents: AGENTS.md
Awesome Lists containing this project
- awesome-python - pyre-check - Performant type checking. (Code Analysis)
- awesome-python-resources - GitHub - (👨💻 210 · 🔀 370 · 📋 310 - 28% open · ⏱️ 26.08.2022): (代码分析和 Lint 工具)
- fucking-awesome-python-cn - pyre-check - :性能类型检查。 (资源列表 / 代码分析和 Lint 工具)
- awesome-python - pyre-check - Performant type checking. (Code Analysis)
- starred-awesome - pyre-check - Performant type-checking for python. (OCaml)
- awesome-robotic-tooling - pyre-check - Performant type-checking for python. (Development Environment / Debugging and Tracing)
- git-github.com-vinta-awesome-python - Pyre - Performant type checking. (Code Analysis)
- awesome-python-zh - pyre-check - \-性能类型检查。 (代码分析)
- awesome-python-cn - pyre-check - :性能类型检查。 (资源列表 / 代码分析和 Lint 工具)
- awesome-learning-resource - Pyre Check - :Facebook 宣布开源静态分析工具 Pysa。这是 Instagram 上用于检测和修复应用程序庞大 Python 代码库中错误的一个内部工具,可以自动识别 Facebook 工程师编写的易受攻击的代码段,然后再将其集成到社交网络的系统中。GitHub:star:4.6k (Uncategorized / Uncategorized)
- awesome-python - Pyre - Performant type checking. (Code Analysis)
- fucking-awesome-python - :octocat: pyre-check - :star: 6402 :fork_and_knife: 428 - Performant type checking. (Code Analysis)
- awesome-python - Pyre - Performant type checking. (Code Analysis)
- awesome-tools - Pyre - Python 静态类型检查工具。 (Python)
- awesome-python - pyre-check - Performant type checking. (Code Analysis)
- python-awesome - pyre-check - Performant type checking. (Code Analysis)
- awesome-list - Pyre - Performant type-checking for python. (Containers & Language Extentions & Linting / For Python)
- awesome-robotic-tooling - pyre-check - Performant type-checking for python (System / Debugging and Tracing)
- awesome-python - pyre-check - Performant type-checking for python. ` 📝 3 days ago` (Code Analysis [🔝](#readme))
- jimsghstars - facebook/pyre-check - Performant type-checking for python. (OCaml)
- awesome-python - pyre-check - <img src="assets/star.png" width="16" /> 2283 <img src="assets/license.png" width="16" /> [MIT](https://api.github.com/licenses/mit)\- Performant type-checking for python. (Awesome Python / Code Analysis)
README
[](https://github.com/facebook/pyre-check/actions/workflows/tests.yml)
[](https://opensource.org/licenses/MIT)
[](https://gitter.im/pyre-check/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
> [!WARNING]
>
> ## This Repository Is Archived
>
> This repository is no longer maintained and has been archived.
>
> - **Type checking:** Pyre has been replaced by Pyrefly, our next-generation Python typechecker and language server.
> - **Security analysis (Pysa):** Pysa has moved to its own repository at github.com/facebook/Pysa. If you are looking for Pysa, please head there.
Pyre is a performant type checker for Python compliant with [PEP 484](https://www.python.org/dev/peps/pep-0484/). Pyre can analyze codebases with millions of lines of code incrementally – providing instantaneous feedback to developers as they write code. Refer to our [documentation](https://pyre-check.org/docs/getting-started) to get started.
Pyre ships with **Pysa**, a security focused static analysis tool we've built on top of Pyre that reasons about data flows in Python applications. **Pysa now lives in its own repository at [github.com/facebook/Pysa](https://github.com/facebook/Pysa)** — please head there for the latest version and to get started with our security analysis.
Pysa is also available on the [GitHub Marketplace as a Github Action](https://github.com/marketplace/actions/pysa-action)
## Requirements
To get started, you need [Python 3.9 or later](https://www.python.org/getit/) and [watchman](https://facebook.github.io/watchman/) working on your system. On *MacOS* you can get everything with [homebrew](https://brew.sh/):
```bash
$ brew install python3 watchman
```
On *Ubuntu*, *Mint*, or *Debian*; use `apt-get` and [homebrew](https://brew.sh/):
```bash
$ sudo apt-get install python3 python3-pip python3-venv
$ brew install watchman
```
We tested Pyre on *Ubuntu 18.04.5 LTS*, *CentOS 7*, as well as *OSX 10.11* and later.
## Setting up a Project
We start by creating an empty project directory and setting up a virtual environment:
```bash
$ mkdir my_project && cd my_project
$ python3 -m venv ~/.venvs/venv
$ source ~/.venvs/venv/bin/activate
(venv) $ pip install pyre-check
```
Next, we teach Pyre about our new project:
```bash
(venv) $ pyre init
```
This command will set up a configuration for Pyre (`.pyre_configuration`) as well as watchman (`.watchmanconfig`) in your project's directory. Accept the defaults for now – you can change them later if necessary.
## Running Pyre
We are now ready to run Pyre:
```bash
(venv) $ echo "i: int = 'string'" > test.py
(venv) $ pyre
ƛ Found 1 type error!
test.py:1:0 Incompatible variable type [9]: i is declared to have type `int` but is used as type `str`.
```
This first invocation will start a daemon listening for filesystem changes – type checking your project incrementally as you make edits to the code. You will notice that subsequent invocations of `pyre` will be faster than the first one.
For more detailed documentation, see https://pyre-check.org.
## Join the Pyre community
See [CONTRIBUTING.md](CONTRIBUTING.md) for how to help out.
## License
Pyre is licensed under the MIT license.