Detection
The Python adapter is selected when Python 3 is available (python3 --version succeeds) and your project contains .py files (among supported adapters, the one with the most matching files wins).
Analysis
Python analysis walks source files and runs the shared analyzer suite: security, complexity, code smell, dead code, type hints, dependencies, and performance. Each issue includes a populated blast radius from import and call graphs.Auto-fixes
Transforms are applied in-memory and then gated by the verification engine before write. Python-specific fixers include unused imports, dead code, type hints, f-string safety, trailing whitespace, import sorting, and others registered in the autofix engine.Verification
- Syntax —
ast.parsevia a Python subprocess. - Imports — Exercises that catch broken imports after a transform.
- Tests —
pytestfor the file or project (see adapter and test-runner implementation for timeouts).
Requirements
- Python 3.8+ on
PATHaspython3. - For tests:
pytestin the environment when the test gate runs.
See also
- Configuration — Analyzer toggles and thresholds
