Dependency Management
Dependency Management
- Backend install (from constraints):
pip install --no-deps -c backend/constraints.txt -e .
- Regenerate constraints (choose one):
pip-compile pyproject.toml --output-file backend/constraints.txt
uv pip compile pyproject.toml -o backend/constraints.txt
- Frontend install (locked):
npm ci (or pnpm install --frozen-lockfile if using pnpm).
- Bump policy: update one stack at a time (backend vs frontend), then rerun lint/tests.
- Networking: use service DNS (
postgres, redis, rabbitmq) for inter-service URLs.
- Secrets: always from env; never hardcode credentials.