Sponsors
Become a sponsor-
iPulse AI
Open Agentic Investment Research Platform. Inspect deep multi-agent market forecasts and stock picks.
-
PyUiBuilder
Build your Python GUIs like Canva using drag and drop. Export clean, editable Python code.
Listed in editorial order, grouped by use case. Click a column header to re-sort the whole list.
Press / to search. Tags open their category. Click a row for details.
Search and filter
Results
| Row number | Tags | |||||
|---|---|---|---|---|---|---|
General 4 projects |
||||||
| 1 | import-linter Code Analysis | 39,396,429 | 1,284 | General Code Analysis Developer Tools | ||
|
A linter that enforces architectural constraints on imports between Python modules.
|
||||||
| 2 | vulture Code Analysis | 18,674,704 | 5,031 | General Code Analysis Developer Tools | ||
|
A tool for finding and analyzing dead Python code.
|
||||||
| 3 | complexipy Code Analysis | 2,209,559 | 932 | General Code Analysis Developer Tools | ||
|
Cognitive complexity analysis for Python code, written in Rust.
|
||||||
| 4 | prospector Code Analysis | 306,457 | 2,080 | General Code Analysis Developer Tools | ||
|
A tool to analyze Python code.
|
||||||
Git Hooks 1 project |
||||||
| 5 | pre-commit Code Analysis | 148,327,392 | 15,724 | Git Hooks Code Analysis Developer Tools | ||
|
A framework for managing and maintaining multi-language pre-commit hooks.
|
||||||
Linters and Formatters 6 projects |
||||||
| 6 | ruff Code Analysis | 436,347,649 | 51,806 | Linters and Formatters Code Analysis Developer Tools | ||
|
An extremely fast Python linter and code formatter.
|
||||||
| 7 | black Code Analysis | 106,757,581 | 42,262 | Linters and Formatters Code Analysis Developer Tools | ||
|
The uncompromising Python code formatter.
|
||||||
| 8 | isort Code Analysis | 89,963,496 | 6,967 | Linters and Formatters Code Analysis Developer Tools | ||
|
A Python utility / library to sort imports.
|
||||||
| 9 | pylint Code Analysis | 37,860,489 | 5,750 | Linters and Formatters Code Analysis Developer Tools | ||
|
A fully customizable source code analyzer.
|
||||||
| 10 | flake8 Code Analysis | 39,709,941 | 3,837 | Linters and Formatters Code Analysis Developer Tools | ||
|
A wrapper around
pycodestyle, pyflakes and McCabe. |
||||||
| 11 | bandit Code Analysis | 29,967,594 | 8,416 | Linters and Formatters Code Analysis Developer Tools | ||
|
A tool designed to find common security issues in Python code.
|
||||||
Refactoring 2 projects |
||||||
| 12 | rope Code Analysis | 1,570,944 | 2,250 | Refactoring Code Analysis Developer Tools | ||
|
Rope is a Python refactoring library.
|
||||||
| 13 | ast-grep-cli Code Analysis | 4,460,718 | 16,888 | Refactoring Code Analysis Developer Tools | ||
|
A CLI tool for structural code search, linting, and rewriting based on syntax trees.
|
||||||
Type Checkers 5 projects |
||||||
| 14 | mypy Code Analysis | 198,649,933 | 20,755 | Type Checkers Code Analysis Developer Tools | ||
|
A static type checker for Python.
|
||||||
| 15 | ty Code Analysis | 53,119,722 | 20,528 | Type Checkers Code Analysis Developer Tools | ||
|
An extremely fast Python type checker and language server.
|
||||||
| 16 | pyright Code Analysis | 57,277,907 | 15,772 | Type Checkers Code Analysis Developer Tools | ||
|
Full-featured static type checker for Python from Microsoft, the engine behind Pylance.
|
||||||
| 17 | basedpyright Code Analysis | 22,180,324 | 3,668 | Type Checkers Code Analysis Developer Tools | ||
|
A pyright fork with stricter defaults and Pylance features in its language server.
|
||||||
| 18 | pyrefly Code Analysis | 12,069,959 | 7,290 | Type Checkers Code Analysis Developer Tools | ||
|
A fast type checker and language server for Python.
|
||||||
No projects match your search.
Try a broader term, or .
Code Analysis guide
Ruff
Pick Ruff as your linter and formatter: its docs say it can replace Flake8 and dozens of its plugins, Black, and isort. Start with the default rule set: it catches common errors like unused imports with zero configuration. Run ruff check to lint and ruff format to format. The formatter is a drop-in replacement for Black, but it isn't meant to be used interchangeably with Black, so pick one per project. Ruff is a linter, not a type checker, and its docs recommend running one alongside it.
mypy
Pick mypy when your code relies on a mypy plugin, since Pyright and ty have no plugin system. Its plugins teach mypy about libraries that are hard to describe with standard type hints. By default, mypy skips functions without annotations, while Pyright and ty check their bodies too. On an existing codebase, its docs say to start small: get mypy passing on one part of the code before you add annotations.
ty
Pick ty when you already run Ruff and want a type checker from the same team, designed for adoption on partially typed code. It doesn't flag missing annotations and infers types where it can. For that check, its docs point you to Ruff's opt-in ANN rules. Run ty check, and it checks every Python file in your project.
Pyright
Pick Pyright for type checking in VS Code, where its docs recommend the Pylance extension. Pylance runs Pyright's checker and adds features like semantic highlighting. Pyright is a standards-based type checker built for large codebases. Start with a minimal pyrightconfig.json that lists the code to check, run Pyright with its default settings, then add annotations as you go.
basedpyright
Pick basedpyright for Pyright's checks with every diagnostic rule on by default, the less severe ones reported as warnings. It also brings Pylance's features to any editor that supports the language server protocol. On an existing project, write a baseline of the current errors and commit it, so only new or modified code reports errors.
Pyrefly
Try Pyrefly on a project that runs mypy or Pyright today. When it finds that configuration and no Pyrefly config of its own, pyrefly check reads it for the run without writing anything to disk. To switch, run pyrefly init, which attempts to migrate that configuration.
pre-commit
Use pre-commit to run your linters, formatters, and type checkers before every commit. It's a multi-language package manager for git hooks, and Ruff, Black, isort, Flake8, and Bandit all document a hook for it. List your hooks in .pre-commit-config.yaml, run pre-commit install, and run them against all files whenever you add one.
Import Linter
Pick Import Linter to keep the parts of your architecture apart: it imposes constraints on the imports between your modules. Write your contracts in a .importlinter file, and lint-imports fails whenever your code breaks one.
Vulture
Pick Vulture to find unused code in a large codebase, from functions and classes to unreachable code. Point it at your files or packages, like vulture myscript.py mypackage/. Run it on your test suite too, and it also finds untested code.
complexipy
Pick complexipy to flag functions whose control flow is hard to follow. It scores cognitive complexity, where each level of nesting adds to a function's score. Run complexipy . on your project and set the score above which a function fails.
Prospector
Pick Prospector to run several analysis tools as one: it brings together Pylint, pycodestyle, and McCabe complexity, with default profiles meant to be useful out of the box. Run prospector from your project root with no arguments, and it figures out the rest with sensible defaults.
Pylint
Run Pylint next to Ruff for the checks its inference finds. Pylint infers the actual values in your code instead of trusting your type hints, so it finds more in code that isn't fully typed. Ruff's docs agree that Pylint does more type inference, like checking the number of arguments in a call.
Flake8
Keep Flake8 only when you depend on a plugin of your own, since Ruff doesn't support custom lint rules and re-implements popular Flake8 plugins in Rust instead.
Bandit
Keep Bandit next to Ruff when security checks need a workflow of their own. Bandit finds common security issues in Python code, and bandit -r scans a whole directory. It can compare a run against a baseline report to skip known non-issues, report only high-severity issues, or run a single profile of tests, like ShellInjection. Its tests are plugins, so you can write your own.
Rope
Pick Rope for refactorings like renaming and moving code: many IDEs and editors use it to refactor Python, so you usually run it through your editor. From Python code, start by making a project for your folder, since refactorings change only the files inside it.
ast-grep
Pick ast-grep to search and rewrite code by syntax-tree patterns instead of text, in Python and many other languages. It also lints with rules you write yourself: ast-grep new scaffolds a project, and ast-grep scan runs all its rules against your repo.
More code analysis tools
For more, see awesome-static-analysis for linters in every language, awesome-flake8-extensions for Flake8 plugins, and awesome-python-typing for type stubs, plugins, and tools.
Contribute
Know a project that belongs here?
Tell us what it does and why it stands out.