Vulture is a static analysis tool and linter designed to find unused variables, functions, and classes in Python source code. It operates as a dead code detector and unused code finder that scans source files to identify unreachable expressions and imports without executing the code. The tool employs a confidence-based heuristic scoring system to assign probability values to detections, helping to distinguish truly unused symbols from potential false positives. It further assists in pruning dead logic by sorting detected unused classes and functions by line count to prioritize the removal of
MonkeyType is a runtime type inferencer and analysis tool for Python. It collects actual argument and return types from function calls during program execution to automate the production of static type annotations and compatible stub files. The system converts captured execution traces into static type hints, which can be inserted directly into source code function definitions or used to generate external type stubs. This process allows for the addition of type safety to existing codebases by analyzing real-world data types rather than through manual auditing. The tool's capabilities cover r
Ruff is a high-performance static analysis and code formatting tool designed for Python. Built in Rust, it functions as a comprehensive engine that scans source code to detect programming errors, security vulnerabilities, and deviations from established coding standards. By parsing source code into a structured tree representation, it provides both automated linting and style enforcement across entire projects. The tool distinguishes itself through its speed and deep integration into the development lifecycle. It utilizes parallelized file processing to maximize throughput on large codebases
Inspects Python source files and provides information about type and location of classes, methods etc
a python refactoring library
The main features of python-rope/rope are: Code Analysis, Code Analysis and Quality, Code Refactoring, Python Extensions.
Open-source alternatives to python-rope/rope include: jendrikseipp/vulture — Vulture is a static analysis tool and linter designed to find unused variables, functions, and classes in Python… instagram/monkeytype — MonkeyType is a runtime type inferencer and analysis tool for Python. It collects actual argument and return types… astral-sh/ruff — Ruff is a high-performance static analysis and code formatting tool designed for Python. Built in Rust, it functions… prospector-dev/prospector — Inspects Python source files and provides information about type and location of classes, methods etc. psf/black — This project is an uncompromising, deterministic code formatter for Python. It functions by parsing source code into… pycqa/bandit — Bandit is a static analysis security testing tool and vulnerability detection scanner for Python source code. It…