chore(devops): project skeleton — uv, docker compose, Makefile, CI
CI / ruff · pytest (pull_request) Successful in 1m50s
CI / ruff · pytest (pull_request) Successful in 1m50s
One Postgres with isolated identity/clinical databases and roles (ADR-003), FastAPI /health, Streamlit placeholder, typed settings with offline defaults. Refs #1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
.PHONY: install up down logs seed demo-reset lint fmt test
|
||||
|
||||
install:
|
||||
uv sync
|
||||
|
||||
up:
|
||||
@test -f .env || cp .env.example .env
|
||||
docker compose up -d --build
|
||||
@echo "API: http://localhost:8000/docs Dashboard: http://localhost:8501"
|
||||
|
||||
down:
|
||||
docker compose down
|
||||
|
||||
logs:
|
||||
docker compose logs -f app dashboard
|
||||
|
||||
seed:
|
||||
docker compose exec app python -m scripts.seed_demo
|
||||
|
||||
demo-reset:
|
||||
docker compose exec app python -m scripts.seed_demo --reset
|
||||
|
||||
lint:
|
||||
uv run ruff check .
|
||||
uv run ruff format --check .
|
||||
|
||||
fmt:
|
||||
uv run ruff check --fix .
|
||||
uv run ruff format .
|
||||
|
||||
test:
|
||||
uv run pytest -q
|
||||
Reference in New Issue
Block a user