Skip to content

UV package manager

Dependencies group

To add a package to a specific group, use the --group option:

uv add --group lint ruff

Upgrade packages

Upgrades the lock, but not the dependencies in pyproject.toml.

uv add --dev --upgrade-package pyright "pyright[nodejs]"

If you want to upgrade the dependencies in pyproject.toml, use:

uv add --dev "pyright[nodejs]>=1.2.3"

If you want to upgrade the lock for all packages, use:

uv lock --upgrade
uv sync