Python Code Analysis and Linter

Open-source Python projects categorized as Code Analysis and Linter

Top 12 Python Code Analysis and Linter Projects

  • mypy

    Optional static typing for Python

    Project mention: Polars – A bird's eye view of Polars | | 2024-02-13

    It's got type annotations and mypy has a discussion about it here as well:

  • Pylint

    It's not just a linter that annoys you!

    Project mention: W1203: logging-fstring-interpolation (Solved) | | 2024-01-21

    A little introduction about pylint. Pylint is a static code analyzer, it analyses your code without actually running it. Pylint looks for potential errors, gives suggestions on coding standards that your code is not adhering to, potential places where refactoring might help, and also warnings about smelly code.

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

  • MonkeyType

    A Python library that generates static type annotations by collecting runtime types (by Instagram)

    Project mention: A Tale of Two Kitchens - Hypermodernizing Your Python Code Base | | 2023-11-12

    To alleviate the burden of manual annotation, MonkeyType offers a clever solution. It dynamically observes the types entering and leaving functions during code execution. Based on this observation, it generates a preliminary draft of type annotations. This significantly reduces the effort needed to add type hints to legacy code.

  • vprof

    Visual profiler for Python

  • code2flow

    Pretty good call graphs for dynamic languages

    Project mention: Any good tool to visualize code/calls graph? | /r/learnc | 2023-03-23

    like this is for javascript)

  • coala

    coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.

  • Flake8

    flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.

    Project mention: Django Code Formatting and Linting Made Easy: A Step-by-Step Pre-commit Hook Tutorial | | 2023-10-05
  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • prospector

    Inspects Python source files and provides information about type and location of classes, methods etc

    Project mention: The Ruff python linter is insanely good | /r/Python | 2023-03-16

    Just before discovering ruff, I was already migrating to PyCQA/prospector to simplify my configs...

  • pydeps

    Python Module Dependency graphs

  • pylama

    Code audit tool for python.

  • PythonBuddy

    1st Online Python Editor With Live Syntax Checking and Execution

  • unimport

    :rocket: The ultimate linter and formatter for removing unused import statements in your code. (by hakancelikdev)

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-13.

Python Code Analysis and Linter related posts


What are some of the best open-source Code Analysis and Linter projects in Python? This list will help you:

Project Stars
1 mypy 17,214
2 Pylint 5,039
3 MonkeyType 4,481
4 vprof 3,940
5 code2flow 3,591
6 coala 3,503
7 Flake8 3,187
8 prospector 1,894
9 pydeps 1,547
10 pylama 1,033
11 PythonBuddy 269
12 unimport 238
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.