{"repo":"quora/pyanalyze","free":true,"listed":false,"github":"https://github.com/quora/pyanalyze","clone":"git clone https://github.com/quora/pyanalyze.git","description":"A Python type checker","language":"Python","stars":386,"topics":["linter","python","static-analysis","typechecker","types","typing"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"pyanalyze Pyanalyze is a semi-static type checker for Python code. Like a static type checker (e.g., mypy or pyright), it detects type errors in your code so bugs can be found before they reach production. Unlike such tools, however, it imports the modules it type checks, enabling pyanalyze to understand many dynamic constructs that other type checkers will reject. This property also makes it possible to extend pyanalyze with plugins that interact directly with your code. Usage You can install pyanalyze with: Once it is installed, you can run pyanalyze on a Python file or package as follows: But note that this will try to import all Python files it is passed. If you have scripts that perform operations without if name == \" main \": blocks, pyanalyze may end up executing them. In order to run successfully, pyanalyze needs to be able to import the code it checks. To make this work you may have to manually adjust Python's import path using the $PYTHONPATH environment variable. For quick experimentation, you can also use the -c option to directly type check a piece of code: Configuration Pyanalyze has a number of command-line options, which you can see by running python -m pyanalyze --help . Important ones include -f , which runs an interactive prompt that lets you examine and fix each error found by pyanalyze, and --enable / --disable , which enable and disable specific error codes. Configuration through a pyproject.toml file is also supported. See the documentation for details. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/quora","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/quora/pyanalyze/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}