-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (43 loc) · 1.77 KB
/
Copy pathMakefile
File metadata and controls
58 lines (43 loc) · 1.77 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
.PHONY: help install dev-backend dev-frontend test test-backend-targeted test-frontend-targeted test-ci-routing test-integration lint format check up down logs
help:
@echo "make install Install backend and frontend dependencies"
@echo "make dev-backend Run FastAPI development server"
@echo "make dev-frontend Run Vite development server"
@echo "make test-backend-targeted TARGETS='[\"tests/test_imports_api.py\"]'"
@echo "make test-frontend-targeted TARGETS='[\"src/lib/api.test.ts\"]'"
@echo "make test-ci-routing Run local CI plan and gate regression tests"
@echo "PR checks route automatically after trusted CI activation; ci:milestone requests full acceptance"
@echo "make check Run backend tests/lint and frontend checks"
install:
cd backend && uv sync --extra dev
cd frontend && pnpm install
dev-backend:
cd backend && uvicorn app.main:app --reload
dev-frontend:
cd frontend && pnpm dev
test:
cd backend && uv run pytest
test-backend-targeted:
@python3 scripts/run_targeted_tests.py backend
test-frontend-targeted:
@python3 scripts/run_targeted_tests.py frontend
test-ci-routing:
cd backend && uv run pytest --no-cov tests/test_ci_plan.py tests/test_required_gate.py
test-integration:
docker compose up -d postgres redis minio
cd backend && uv run pytest -m integration
lint:
cd backend && uv run ruff format --check . && uv run ruff check . && uv run mypy app
cd frontend && pnpm lint
format:
cd backend && uv run ruff format .
cd frontend && pnpm format
check:
cd backend && uv run ruff format --check . && uv run ruff check . && uv run mypy app && uv run pytest
cd frontend && pnpm format:check && pnpm lint && pnpm test:coverage && pnpm build
up:
docker compose up -d --build
down:
docker compose down
logs:
docker compose logs -f --tail=200