-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (46 loc) · 2.13 KB
/
Copy pathMakefile
File metadata and controls
61 lines (46 loc) · 2.13 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
54
55
56
57
58
59
60
61
.PHONY: up down migrate test lint fmt build logs demo
# ── Local development ──────────────────────────────────────────────
up:
docker compose up
up-d:
docker compose up -d
down:
docker compose down
migrate:
docker compose --profile migration run --rm migrate
build:
docker compose build
logs:
docker compose logs -f
# ── Database ───────────────────────────────────────────────────────
seed:
docker compose exec api python scripts/seed_db.py
# ── Testing ────────────────────────────────────────────────────────
test:
pytest tests/unit tests/integration -v --cov=forgeflow --cov-report=term-missing
test-unit:
pytest tests/unit -v
test-integration:
pytest tests/integration -v
# ── Code quality ───────────────────────────────────────────────────
lint:
ruff check forgeflow/ dashboard/ tests/
mypy forgeflow/ --ignore-missing-imports
fmt:
ruff format forgeflow/ dashboard/ tests/
# ── Demo ───────────────────────────────────────────────────────────
demo:
python scripts/run_demo.py
eval:
python scripts/generate_eval_dataset.py
# ── Help ───────────────────────────────────────────────────────────
help:
@echo "ForgeFlow Makefile targets:"
@echo " up Start all services"
@echo " down Stop all services"
@echo " migrate Run Alembic migrations"
@echo " test Run all tests with coverage"
@echo " lint Run ruff + mypy"
@echo " fmt Auto-format with ruff"
@echo " demo Run demo workflow"
@echo " seed Seed demo data"