-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 1.37 KB
/
Copy pathMakefile
File metadata and controls
40 lines (31 loc) · 1.37 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
# PractiLoop Polyglot Monorepo Makefile
.PHONY: help dev-api dev-ext test-api build-ext check lint clean install-hooks
help:
@echo "PractiLoop Command Shortcuts:"
@echo " make dev-api - Run FastAPI dev server (http://127.0.0.1:8000)"
@echo " make dev-ext - Run Vite watch mode for Chrome extension"
@echo " make test-api - Run pytest for Python backend"
@echo " make build-ext - Build Chrome extension production bundle"
@echo " make check - Run type checks across Python (mypy) and Extension (tsc)"
@echo " make lint - Run linters (ruff for Python)"
@echo " make install-hooks - Install pre-commit git hook"
@echo " make clean - Clean build artifacts and caches"
dev-api:
uv run --directory apps/api uvicorn learning_companion.main:app --reload
dev-ext:
pnpm --filter @practiloop/extension dev
test-api:
uv run --directory apps/api pytest
build-ext:
pnpm --filter @practiloop/extension build
check:
pnpm --filter @practiloop/extension exec tsc --noEmit
uv run --directory apps/api mypy src
lint:
uv run --directory apps/api ruff check src
install-hooks:
chmod +x scripts/pre-commit.sh
cp scripts/pre-commit.sh .git/hooks/pre-commit
@echo "✅ Pre-commit hook installed into .git/hooks/pre-commit"
clean:
rm -rf apps/extension/dist apps/api/.venv apps/api/.pytest_cache apps/api/.mypy_cache apps/api/.ruff_cache