Python Code Analysis and Linter

Open-source Python projects categorized as Code Analysis and Linter

Top 13 Python Code Analysis and Linter Projects

Code Analysis and Linter
  1. mypy

    Optional static typing for Python

    Project mention: A "Frozen" Dictionary for Python | news.ycombinator.com | 2025-12-11

    - "Final names and attributes" https://github.com/python/mypy/pull/5522

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. scalene

    Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals

    Project mention: ATC/OSDI '25 Joint Keynote: Accelerating Software Dev: The LLM (R)Evolution [video] | news.ycombinator.com | 2025-09-08

    - https://github.com/plasma-umass/scalene

    Coz: A causal profiler that tells you where to optimize your code (C/C++/Rust/Swift/Java)

  4. Pylint

    It's not just a linter that annoys you!

    Project mention: From Vibe Coder to AI-Assisted Architect | dev.to | 2025-05-07

    I noticed this issue only after running a linter. Sometimes we’re not familiar with the tricky edge cases or conventions of a particular language. A convenient way to catch and fix such issues — including formatting, styling, and even some security problems — is to use linters. For example, you can use golangci-lint for Go, ESLint for JavaScript, and Pylint for Python. In fact, almost every widely used programming language has its own linter or code quality tool. Linters are especially helpful when generating code with AI — they help keep your code clean and safe, at least to some degree.

  5. MonkeyType

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

    Project mention: Why Today's Python Developers Are Embracing Type Hints | news.ycombinator.com | 2025-09-27

    Yep, I've used this pretty successfully, the ideal is to run it under realistic prod traffic over time to capture as many types as can flow into a given function, but a good set of unit/integration tests can also provide good coverage.

    And if you re-use the same type store (SQLite DB) across multiple instrumented runs, you can further improve it.

    https://github.com/Instagram/MonkeyType

  6. code2flow

    Pretty good call graphs for dynamic languages

  7. vprof

    Visual profiler for Python

  8. 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: Python Linters: A Guide for Clean Code | dev.to | 2025-11-27

    Flake8 Documentation

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. coala

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

  11. prospector

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

  12. pydeps

    Python Module Dependency graphs

  13. pylama

    Code audit tool for python.

  14. PythonBuddy

    1st Online Python Editor With Live Syntax Checking and Execution

  15. 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).

Python Code Analysis and Linter discussion

Python Code Analysis and Linter related posts

  • Ty: An fast Python type checker and LSP

    18 projects | news.ycombinator.com | 16 Dec 2025
  • A "Frozen" Dictionary for Python

    6 projects | news.ycombinator.com | 11 Dec 2025
  • Type hints in Python (4)

    2 projects | dev.to | 25 Nov 2025
  • Type hints in Python (2)

    1 project | dev.to | 20 Nov 2025
  • My Experience Creating CI Workflows and Contributing Tests to an Existing Project

    3 projects | dev.to | 14 Nov 2025
  • Why Today's Python Developers Are Embracing Type Hints

    5 projects | news.ycombinator.com | 27 Sep 2025
  • Baby's First Type Checker

    5 projects | news.ycombinator.com | 6 Sep 2025
  • A note from our sponsor - Stream
    getstream.io | 23 Dec 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Index

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

# Project Stars
1 mypy 20,084
2 scalene 13,162
3 Pylint 5,622
4 MonkeyType 4,980
5 code2flow 4,493
6 vprof 3,970
7 Flake8 3,740
8 coala 3,582
9 prospector 2,053
10 pydeps 2,036
11 pylama 1,054
12 PythonBuddy 284
13 unimport 248

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that Python is
the 2nd most popular programming language
based on number of references?