Critical Python

Use uv for package management

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
View
FastAPI Guidelines
36 rules • 1 standard
View
Python Standards
33 rules • 2 standards
View
npm Standards
23 rules • 2 standards
View
pnpm Standards
23 rules • 3 standards
View
Yarn Standards
23 rules • 0 standards
View
Poetry Standards
23 rules • 0 standards
View
Bundler Standards
23 rules • 1 standard
View
Maven Standards
23 rules • 0 standards
View
Gradle Standards
23 rules • 2 standards
View
Cargo Standards
23 rules • 2 standards
View
Composer Standards
23 rules • 1 standard
View
pip Standards
23 rules • 0 standards
View
uv Standards
25 rules • 2 standards
View
Code Review Standards
58 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
Critical
Category
Python
Used in
15 rulesets