-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (54 loc) · 1.45 KB
/
Copy pathMakefile
File metadata and controls
70 lines (54 loc) · 1.45 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
64
65
66
67
68
69
70
UV := uv
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Setup"
@echo " setup Install deps (dev group) into .venv via uv"
@echo ""
@echo "Quality gate"
@echo " check lint + format-check + typecheck + test"
@echo " lint ruff check"
@echo " format ruff format (writes)"
@echo " format-check ruff format --check"
@echo " typecheck ty check"
@echo " test pytest"
@echo ""
@echo "Run"
@echo " render FILE=graph.gnode OUT=out.png Render a .gnode to PNG"
@echo " serve Start the FastAPI service on 127.0.0.1:8080"
.PHONY: setup
setup:
$(UV) sync
.PHONY: check
check: lint format-check typecheck test
.PHONY: lint
lint:
$(UV) run ruff check .
.PHONY: format
format:
$(UV) run ruff format .
.PHONY: format-check
format-check:
$(UV) run ruff format --check .
.PHONY: typecheck
typecheck:
$(UV) run ty check src tests
.PHONY: test
test:
$(UV) run pytest
.PHONY: render
render:
$(UV) run gnode render $(FILE) -o $(OUT)
.PHONY: serve
serve:
$(UV) run --group server python -m gnode.server
# ── Frontend (Milestone 3) ────────────────────────────────────────────────────
.PHONY: front-install front-dev front-build front-check
front-install:
cd frontend && npm ci
front-dev:
cd frontend && npm run dev
front-build:
cd frontend && npm run build
front-check:
cd frontend && npm run check