Guía rápida para contribución y desarrollo local.
- Python 3.11+
- uv (gestor de entornos y dependencias)
# Crear .venv e instalar dependencias (uv gestiona el entorno)
uv sync --all-extras
# Levantar Redis para desarrollo
docker run -d -p 6379:6379 redis:7-alpine
# Ejecutar la app
uv run uvicorn api.main:app --reload --host 0.0.0.0 --port 8000# Ejecutar todos los tests
uv run pytest -v
# Tests específicos
uv run pytest tests/test_router.py -v# Formatear
uv run black .
# Lint
uv run flake8 . --max-line-length=100
# Type check
uv run mypy . --ignore-missing-imports- Use
uv run scripts/test.pypara utilidades comunes (lint, tests).