Critical
Python
Use uv for package management
Official
Rule Description
Use `uv` as the default Python package manager - it's the preferred choice:
- 10-100x faster than pip/poetry
- Built-in virtual environment management
- Lockfile support (uv.lock) for reproducible builds
- Compatible with pyproject.toml and requirements.txt
- Rust-based, single binary, no Python dependency
```bash
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create new project
uv init myproject
cd myproject
# Add dependencies
uv add fastapi sqlalchemy pydantic
# Add dev dependencies
uv add --dev pytest ruff mypy
# Run commands
uv run python main.py
uv run pytest
```
NEVER use pip, poetry, or pipenv for new projects - always use uv.
Included in Rulesets
Django Best Practices
36 rules • 1 standard
FastAPI Guidelines
36 rules • 1 standard
Python Standards
33 rules • 2 standards
npm Standards
23 rules • 2 standards
pnpm Standards
23 rules • 3 standards
Yarn Standards
23 rules • 0 standards
Poetry Standards
23 rules • 0 standards
Bundler Standards
23 rules • 1 standard
Maven Standards
23 rules • 0 standards
Gradle Standards
23 rules • 2 standards
Cargo Standards
23 rules • 2 standards
Composer Standards
23 rules • 1 standard
pip Standards
23 rules • 0 standards
uv Standards
25 rules • 2 standards
Code Review Standards
58 rules • 0 standards
Add This Rule
Sign in to add this rule to your workspace
Sign in with GitHubDetails
- Severity
- Critical
- Category
- Python
- Used in
- 15 rulesets