-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (42 loc) · 2.63 KB
/
Copy pathMakefile
File metadata and controls
63 lines (42 loc) · 2.63 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
62
63
.PHONY: install dev-backend dev-frontend dev \
test-backend test-frontend test \
lint-backend lint-frontend lint \
build data eval docker-build
# ── Install ───────────────────────────────────────────────────────────────────
install:
cd backend && uv sync
cd frontend && npm install
# ── Dev servers ───────────────────────────────────────────────────────────────
dev-backend:
cd backend && uv run uvicorn app.main:app --reload --port 8000
dev-frontend:
cd frontend && npm run dev
# Run both sides together. Each server needs its own terminal; open a second
# terminal and run `make dev-frontend`, or use a process manager like `foreman`.
dev:
@echo "Run 'make dev-backend' and 'make dev-frontend' in separate terminals."
@echo "Or: cd backend && uv run uvicorn app.main:app --reload --port 8000 &"
@echo " cd frontend && npm run dev"
# ── Tests ─────────────────────────────────────────────────────────────────────
test-backend:
cd backend && uv run pytest
test-frontend:
cd frontend && npm test
test: test-backend test-frontend
# ── Lint / typecheck ──────────────────────────────────────────────────────────
lint-backend:
cd backend && uv run ruff check .
lint-frontend:
cd frontend && npx tsc --noEmit
lint: lint-backend lint-frontend
# ── Build ─────────────────────────────────────────────────────────────────────
build:
cd frontend && npm run build
# ── Data / eval ───────────────────────────────────────────────────────────────
data:
cd backend && uv run python scripts/prepare_data.py
eval:
cd backend && uv run python -m app.eval.backtest
# ── Docker ────────────────────────────────────────────────────────────────────
docker-build:
docker build -t comps-agent ./backend