-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (32 loc) · 976 Bytes
/
Copy pathMakefile
File metadata and controls
47 lines (32 loc) · 976 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
47
export PATH := $(HOME)/.bun/bin:$(PATH)
.PHONY: test run-local-server run-debug lint format typecheck typecheck-frontend format-frontend lint-frontend test-frontend run-all-checks run-games deadcode generate-replays profile
test:
uv run pytest -v
run-local-server:
@bash ./bin/run-local-server.sh
lint:
uv run ruff format --check backend
uv run ruff check backend
format:
uv run ruff check --fix backend
uv run ruff format backend
typecheck:
uv run ty check backend
typecheck-frontend:
cd frontend && bun run typecheck
format-frontend:
cd frontend && bun run fmt
lint-frontend:
cd frontend && bun run lint
test-frontend:
cd frontend && bun run test
run-debug:
PYTHONPATH=backend uv run python backend/debug.py
run-all-checks:
@bash ./bin/run-all-checks.sh|| true
deadcode:
uv run python bin/check-dead-code.py backend
generate-replays:
PYTHONPATH=backend uv run python -m game.replay.external.tenhou
profile:
uv run python bin/profile_replay.py