-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (17 loc) · 962 Bytes
/
Makefile
File metadata and controls
17 lines (17 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.PHONY: dev check backend-check test lint typecheck fmt migrate migration seed eval frontend-install frontend-lint frontend-test frontend-build frontend-check
dev: ; docker compose up -d db && uv run uvicorn backend.app.main:app --reload
check: backend-check frontend-check
backend-check: lint typecheck test
lint: ; uv run ruff check . && uv run ruff format --check .
typecheck: ; uv run mypy .
test: ; uv run pytest -q
fmt: ; uv run ruff format . && uv run ruff check --fix .
migrate: ; uv run alembic upgrade head
migration: ; uv run alembic revision --autogenerate -m "$(m)"
seed: ; uv run python -m backend.app.ingest --path data/sample
eval: ; uv run python -m eval.run && cat eval/RESULTS.md
frontend-install: ; npm --prefix frontend ci
frontend-lint: ; npm --prefix frontend run lint
frontend-test: ; npm --prefix frontend test
frontend-build: ; npm --prefix frontend run build
frontend-check: frontend-install frontend-lint frontend-test frontend-build