Skip to content

Dependencies

Use uv -- it's basically a Cargo for python, written in rust

Add a dependency:

uv add ruff

Add a dependency to the optional "dev" group:

uv add ruff --optional dev

Create a new lockfile:

uv lock 

Pass --upgrade to upgrade:

uv lock --upgrade

Install dependencies:
(this will only install the core dependencies)

uv pip install -r pyproject.toml

Install extra dependencies defined in project.optional-dependencies:

uv pip install -r pyproject.toml --all-extras