-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (37 loc) · 950 Bytes
/
Makefile
File metadata and controls
50 lines (37 loc) · 950 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
48
49
50
.PHONY: run worker dev test lint migrate migrate-create frontend
# ── Backend ──
run:
uv run uvicorn backend.main:app --reload --port 8000
worker:
uv run python worker.py
# ── Frontend ──
frontend:
cd frontend-next && npm run dev
# ── Both (parallel) ──
dev:
make run & make frontend & wait
# ── Testing ──
test:
uv run pytest tests/ -v
lint:
uv run ruff check backend/ tests/
uv run ruff format --check backend/ tests/
fix:
uv run ruff check --fix backend/ tests/
uv run ruff format backend/ tests/
# ── Database Migrations ──
migrate:
uv run alembic upgrade head
migrate-create:
@read -p "Migration message: " msg && uv run alembic revision -m "$$msg"
migrate-down:
uv run alembic downgrade -1
migrate-history:
uv run alembic history
# ── Dependencies ──
install:
uv sync
cd frontend-next && npm install
install-dev:
uv sync --all-extras
cd frontend-next && npm install