uv
how to run python files and mangage dependencies using UV package manager (pip replacement)
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
You are working with a Python project that uses UV package manager. UV is a fast package manager serving as a drop-in replacement for pip, pip-tools, and virtualenv.
Core Commands
Project Setup
uv sync # Install all default AND dev dependencies from pyproject.toml
Running Commands
uv run python script.py # Run Python with project dependencies
Adding Dependencies
uv add package-name # Add to [project.dependencies]
uv add --dev package-name # Add to [dependency-groups.dev]
CRITICAL: Anti-Patterns
NEVER use bare python
# FORBIDDEN:
python ...
python3 ...
INSTEAD: Always use uv run python ...
NEVER use pip
# FORBIDDEN:
uv pip ...
pip ...
python -m pip ...
uv run python -m pip ...
INSTEAD: Use uv add and uv sync
Instructions
When working with Python files in this project:
- Always use
uv run pythoninstead of barepythoncommands - Install dependencies with
uv add, never withpip - Sync dependencies with
uv syncafter modifying pyproject.toml - Run scripts and tools through
uv runto ensure correct environment
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!