-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
95 lines (63 loc) · 1.98 KB
/
Copy pathMakefile
File metadata and controls
95 lines (63 loc) · 1.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.PHONY: install install-ts install-go install-py install-rs test test-eval test-mcp test-mcp-live test-ts test-go test-py test-rs check check-ts check-go check-py check-rs eval build build-ts build-go build-py build-rs format format-ts format-go format-py format-rs book-build book-test book-check
install: install-ts install-go install-py install-rs
install-ts:
npm ci --prefix typescript
cd typescript && npm link
install-go:
go -C go install ./cmd/tiny-go
install-py:
uv tool install --force ./python
install-rs:
cargo install --path ./rust --force
test: test-ts test-go test-py test-rs test-eval book-test
test-eval:
cd typescript && node --import tsx --test ../eval/run.test.ts
test-rs:
cd rust && cargo test --offline
test-ts:
npm --prefix typescript test
test-mcp:
npm --prefix typescript run test:mcp
test-mcp-live:
npm --prefix typescript run test:mcp:live
test-go:
go -C go test ./...
test-py:
uv run --project python python -m unittest discover -s python/tests
check: check-ts check-go check-py check-rs book-check
check-ts:
npm --prefix typescript run lint
npm --prefix typescript run format:check
npm --prefix typescript run check
check-go:
go -C go vet ./...
check-py:
uv run --project python python -m compileall -q python/tiny_agent python/tests
check-rs:
cd rust && cargo clippy --all-targets --offline -- -D warnings
eval:
cd typescript && node --import tsx ../eval/run.ts
format: format-ts format-go format-py format-rs
format-rs:
cd rust && cargo fmt
format-ts:
npm --prefix typescript run format
format-go:
gofmt -w go/cmd
format-py:
uv run --project python --group dev ruff format python
build: build-ts build-go build-py build-rs book-build
build-rs:
cd rust && cargo build --release --offline
build-ts:
npm --prefix typescript run build
build-go:
go -C go build -o /dev/null ./cmd/tiny-go
build-py:
uv build --project python
book-build:
npm --prefix book run build
book-test:
npm --prefix book test
book-check:
npm --prefix book run check