Definição
Ferramentas modernas: uv instala pacotes e gere ambientes muito mais rápido; ruff faz lint e formatação.
Exemplos
1. uv
uv venv uv pip install -r requirements.txt uv run pytest
2. ruff
ruff check . # lint ruff format . # format
3. pre-commit com ruff
# .pre-commit-config.yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
- id: ruff-format