-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (29 loc) · 777 Bytes
/
Makefile
File metadata and controls
46 lines (29 loc) · 777 Bytes
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
.PHONY: lint lint-backend lint-frontend nix-build nix-run format test test-backend test-frontend typecheck screenshot all check
# --- Nix ---
nix-build:
nix build
nix-run:
nix run
# Run all checks (lint + typecheck + test)
check: lint typecheck test
# --- Linting ---
lint: lint-backend lint-frontend
lint-backend:
cd backend && uv run ruff check .
lint-frontend:
cd frontend && npx eslint .
# --- Formatting ---
format:
cd backend && uv run ruff format .
cd backend && uv run ruff check --fix .
# --- Type checking ---
typecheck:
cd frontend && npx tsc -b
# --- Tests ---
test: test-backend test-frontend
test-backend:
cd backend && uv run pytest --tb=short
test-frontend:
cd frontend && npx vitest run
screenshot:
cd frontend && npm run screenshot