-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (17 loc) · 718 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (17 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Run exactly what CI runs, so a push cannot fail on something checkable locally.
# CI failed once on `ruff format --check` because only `ruff check` was run by hand.
.PHONY: check backend-check frontend-check build data
check: backend-check frontend-check
backend-check:
cd backend && .venv/bin/python -m pytest -q
cd backend && .venv/bin/python -m ruff check .
cd backend && .venv/bin/python -m ruff format --check .
frontend-check:
cd frontend && npx tsc -b
cd frontend && npx vitest run
# Generated data is on the `data` branch; this puts a copy in data/ for local work.
data:
scripts/data-branch.sh pull
build: data
cd backend && .venv/bin/python -m app.jobs.export_site
cd frontend && npm run build