Python Project CleanerPython Project Cleaner is a VS Code extension that scans Python workspaces and generates a simple project health report. It helps catch common project cleanup issues like missing Install from the VS Code Marketplace OverviewPython Project Cleaner is built for developers who want a quick way to inspect the structure and hygiene of a Python project directly inside VS Code. It currently checks for:
It also includes helper commands to clean up cache folders and generate starter project files. Demo
ScreenshotsSafe Cache CleanupCache cleanup asks for confirmation before deleting detected
ConfigurationLarge file thresholds and ignored folders can be configured from VS Code settings.
FeaturesProject Health ReportRun:
The report includes:
Cache Folder CleanupRun:
Scans the workspace for Python Starter
|
| Setting | Description | Default |
|---|---|---|
pythonProjectCleaner.largeFileThresholdMb |
Minimum file size in MiB for a file to be reported as large. | 10 |
pythonProjectCleaner.ignoredFolders |
Folder names to skip while scanning the workspace. | .git, .venv, venv, env, node_modules, __pycache__ |
Requirements
No external setup is required.
Open a Python project folder in VS Code and run a Python Project Cleaner command from the Command Palette.
Limitations
- The extension scans folders synchronously, so very large workspaces may take longer to analyze.
- The health score is heuristic and should be treated as a general project hygiene estimate.
- Dependency analysis is static and may produce false positives.
- Some dependencies are used through command-line tools, plugins, dynamic imports, or framework configuration rather than direct Python imports.
Roadmap
Planned improvements:
- Better dependency analysis for
pyproject.toml - More accurate local module detection
- File size display in the large file report
- Additional project structure checks
- More configurable health scoring
- Optional dependency suggestions based on detected imports
Release Notes
See CHANGELOG.md for full version history.
Current release: 1.1.0
Contributing
Contributions, feedback, and suggestions are welcome.
See CONTRIBUTING.md for setup instructions.
License
This project is licensed under the MIT License. See LICENSE for details.


