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 →
Top 13 Python Code Analysis and Linter Projects
-
- "Final names and attributes" https://github.com/python/mypy/pull/5522
-
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.
-
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)
-
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.
-
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-27Yep, 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
-
-
-
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.
Flake8 Documentation
-
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.
-
coala
coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.
-
prospector
Inspects Python source files and provides information about type and location of classes, methods etc
-
-
-
-
unimport
:rocket: The ultimate linter and formatter for removing unused import statements in your code. (by hakancelikdev)
Python Code Analysis and Linter discussion
Python Code Analysis and Linter related posts
-
Ty: An fast Python type checker and LSP
-
A "Frozen" Dictionary for Python
-
Type hints in Python (4)
-
Type hints in Python (2)
-
My Experience Creating CI Workflows and Contributing Tests to an Existing Project
-
Why Today's Python Developers Are Embracing Type Hints
-
Baby's First Type Checker
- A note from our sponsor - Stream getstream.io | 23 Dec 2025
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 |