Use uv exclusively for Python package management in this project.
- All Python dependencies must be installed, synchronized, and locked using uv
- Never use pip, pip-tools, poetry, or conda directly for dependency management
Use these commands:
- Install dependencies:
uv add <package> - Remove dependencies:
uv remove <package> - Sync dependencies:
uv sync
- Run a Python script with
uv run <script-name>.py - Run Python tools like Pytest with
uv run pytestoruv run ruff - Launch a Python repl with
uv run python
- Run a Python script with inline metadata (dependencies defined at the top of the file) with:
uv run script.py - You can add or remove dependencies manually from the
dependencies =section at the top of the script, or - Or using uv CLI:
uv add package-name --script script.pyuv remove package-name --script script.py