Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 1.42 KB
/
Copy pathMakefile
File metadata and controls
53 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Shift Rescue — developer commands.
# Windows note: `make` is unavailable on plain Windows shells; either run the
# underlying commands directly (see each target) or use Docker/WSL.
COMPOSE = docker compose -f infra/docker-compose.yml
.PHONY: up down logs seed test test-backend test-frontend lint lint-backend lint-frontend dev-backend dev-frontend
## Boot the full local stack (postgres, redis, api, worker, beat)
up:
$(COMPOSE) up -d --build
## Stop the stack and remove containers (volumes preserved)
down:
$(COMPOSE) down
## Follow logs from all services
logs:
$(COMPOSE) logs -f
## Run migrations and seed the demo data inside the running api container
seed:
$(COMPOSE) exec api uv run python -m app.db.seed_cli
## Run the eval suites (golden baseline + scenario invariants)
eval:
cd backend && uv run pytest tests/unit/evals tests/unit/agent -q
uv run python evals/runner.py --provider parser
## Run every test suite
test: test-backend test-frontend
test-backend:
cd backend && uv run pytest --cov
test-frontend:
cd frontend && pnpm vitest run
## Run all linters and type checks
lint: lint-backend lint-frontend
lint-backend:
cd backend && uv run ruff check app tests migrations && uv run mypy app
lint-frontend:
cd frontend && pnpm lint
## Run the backend and frontend dev servers
dev-backend:
cd backend && uv run uvicorn app.main:create_app --factory --reload --port 8000
dev-frontend:
cd frontend && pnpm dev