Nox-UV facilitates the integration of `uv`, a fast Python package installer and resolver, into `nox` sessions. It streamlines dependency management and session setup for testing, linting, and other development tasks, leveraging `uv`'s performance benefits. The current version is 0.7.1, and the library maintains an active development pace with frequent updates.
pip install nox-uvVerified import paths — ran on the pinned version, not inferred.
Create a `noxfile.py` in your project root. The `uvsession` decorator replaces `nox.session` and automatically uses `uv` for package management within the session. The `session.install` command will then utilize `uv`.
Install `uv` globally (`pip install uv` or `cargo install uv`) or ensure it's part of your base Nox environment setup.
Review your `session.install` calls involving `extras` (e.g., `.[dev,test]`). Consult the documentation for the correct syntax for your `nox-uv` version, especially regarding exclusions.
Upgrade to `nox-uv` v0.7.1 or higher to use the `uv_quiet=True` option in your `@uvsession` decorator.
If upgrading to v0.6.0 or later, consider adding `uv_no_project_install=True` to your `@uvsession` decorator if your `session.install(".")` or `session.install("-e", ".")` calls are unintentional for that session.