pyre-check
Performant type-checking for python. (by facebook)
flake8
By gitlab-pycqa
Our great sponsors
pyre-check | flake8 | |
---|---|---|
12 | 5 | |
5,914 | - | |
1.7% | - | |
9.9 | - | |
1 day ago | - | |
OCaml | ||
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pyre-check
Posts with mentions or reviews of pyre-check.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-30.
-
Statically typed Python
Facebook/Instagram uses Pyre which is a typechecker for Python.
- facebook/pyre-check - Performant type-checking for python.
-
OCaml at Bloomberg 'we use OCaml to write DSLs and production services โ'
I'd be curious if the pyre-check compilation is any faster for you either by removing the inlining optimization flag (the `-Oclassic` here https://github.com/facebook/pyre-check/blame/36243764ab81a82...) or whether there's a way to compile pyre-check to bytecode instead of the native compilation step (which unfortunately it looks like there's no easy way to modify pyre-check's build config to do so).
I must be doing something wrong.
-
Write better Python - with some help!
Some other good alternatives for type checking are Pyright (which is seen in VSCode via Microsofts PyLance plugin) and Pyre.
-
12 Months of Rust, 50k+ changed lines of code, 8 design iterations. The extent of writing an async ASGI web server in Rust for Python for a 10% performance increase.
Sorry if this is something that youโre already aware of but there already exists a Python-related project with the same name which may lead to confusion. https://pyre-check.org
- Pyre: A performant type-checker for Python 3
- Adoption of Mypy for Python type checking: 45% already use it, 40% don't plan to
flake8
Posts with mentions or reviews of flake8.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-14.
-
flake8-pylint: Flake8 plugin that runs PyLint
Flake8 plugin that runs PyLint.
- Ask HN: Did somebody have success with the migration of Python 2.7 to Java/C#?
-
Make your Django project newbie contributor friendly with pre-commit
$ pre-commit install pre-commit installed at .git/hooks/pre-commit $ git add .pre-commit-config.yaml $ git commit -m "Add pre-commit config" [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://gitlab.com/pycqa/flake8. [INFO] Initializing environment for https://github.com/pycqa/isort. [INFO] Initializing environment for https://github.com/python/black. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://gitlab.com/pycqa/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/pycqa/isort. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/python/black. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... Trim Trailing Whitespace.................................................Passed Check Yaml...............................................................Passed Check for merge conflicts................................................Passed Debug Statements (Python)............................(no files to check)Skipped Check for added large files..............................................Passed Fix requirements.txt.................................(no files to check)Skipped Check django project for potential problems..........(no files to check)Skipped Check django project for missing migrations..........(no files to check)Skipped flake8...............................................(no files to check)Skipped isort................................................(no files to check)Skipped black................................................(no files to check)Skipped
-
On unit testing
If you're looking for just good automated error checking, I personally use a bunch of flake8 plugins via pre-commit hooks: flake8-bugbear, flake8-builtins, flake8-bandit, etc. You can find a bunch of sites that give recommended plugins and you just need to pick which ones you care about :)
-
Python: Setting Up Project Environment
flake8 is Python style checker based on PEP8(Python Enhance Proposal 8). black is a good code formatter. But some items such as Documentation String, black is not provided the check option. flake8 not only helps for lack of black but also can be easily applied with black.
What are some alternatives?
When comparing pyre-check and flake8 you can also consider the following projects:
pyright - Static type checker for Python
black - The uncompromising Python code formatter [Moved to: https://github.com/psf/black]
mypy - Optional static typing for Python
pytype - A static type analyzer for Python code
yapf - A formatter for Python files
typeshed - Collection of library stubs for Python, with static types
typing - Python static typing home. Contains the source for typing_extensions and the documentation. Also hosts a user help forum.
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
isort - A Python utility / library to sort imports.
psst - Fast and multi-platform Spotify client with native GUI