🔋 A batteries-included Python extension for Nova!
What's in the box?
- Integration with Microsoft's Pyright language server
- Code formatting using Ruff or Black
- Linting (and import organization) with Ruff
- A Virtual Environment task for running a script or Python module as though the project's virtual environment is active
- A Cleanup task for clearing out Python cache files, build artifacts, and other files/directories
- A tree-sitter based syntax for
requirements.txt
files, based off of tree-sitter-requirements
- A sidebar showing all packages installed in your configured Python environment, along with any outdated versions, and optionally any known vulnerabilities using pip-audit
Requirements
If you use Homebrew, the easiest way to get started is:
brew install pyright ruff pip-audit
This extension will try to find tools installed on your PATH
, so installing into your virtual environment or another location should work, as well.
Acknowledgements
This project drew inspiration (and code!) from many others that came before it:
Attributions