Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Learn more →
Top 12 Python Code Analysis and Linter Projects
-
I'll try to address both of your replies, sorry for the wait. You should be comfortable with The Python Tutorial -- everything through Chapter 9 is really useful. Python is a good language to know for rapidly getting your ideas into the computer, for programming interviews and festive things like Advent of Code. I really recommend getting comfortable with Python's type annotations and a type checker like mypy. It will save you a lot of headache.
-
-
Sonar
Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
MonkeyType
A Python library that generates static type annotations by collecting runtime types (by Instagram)
Project mention: Do you know any library that automatically detects unused files / functions inside a project folder? | reddit.com/r/Python | 2023-01-30 -
-
coala
coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.
Read the contributing guidelines on GitHub
-
like this https://github.com/scottrogowski/code2flow(it is for javascript)
-
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.
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
prospector
Inspects Python source files and provides information about type and location of classes, methods etc
Just before discovering ruff, I was already migrating to PyCQA/prospector to simplify my configs...
-
Project mention: Is there a way to find Python libraries that depends on a library? | reddit.com/r/learnpython | 2022-11-30
-
-
-
Project mention: Unused Import Linter: A Tool for Optimizing Your Code | news.ycombinator.com | 2023-01-17
Python Code Analysis and Linter related posts
- CS176a and Research Advice
- Any good tool to visualize code/calls graph?
- How do you code in a non-statically typed, imperative language after learning F#?
- The Ruff python linter is insanely good
- What is the status of Python 3.11?
- Even the Pylint codebase uses Ruff
- Even the Pylint codebase uses Ruff
-
A note from our sponsor - Sonar
www.sonarsource.com | 31 Mar 2023
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 | 15,083 |
2 | Pylint | 4,596 |
3 | MonkeyType | 4,161 |
4 | vprof | 3,893 |
5 | coala | 3,437 |
6 | code2flow | 3,125 |
7 | Flake8 | 2,720 |
8 | prospector | 1,783 |
9 | pydeps | 1,250 |
10 | pylama | 980 |
11 | PythonBuddy | 258 |
12 | unimport | 188 |