-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 784 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (26 loc) · 784 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
.PHONY: install db-up db-migrate api-dev web-dev docs-serve docs-build lint test check
install:
uv sync --locked --python 3.12
cd apps/api && uv sync --active --locked --dev
cd apps/web && npm ci
db-up:
docker compose up -d db
db-migrate:
cd apps/api && uv run --active alembic upgrade head
api-dev:
cd apps/api && uv run --active uvicorn weavance_api.main:app --reload
web-dev:
cd apps/web && npm run dev
docs-serve:
uv run --python 3.12 mkdocs serve
docs-build:
uv run --python 3.12 mkdocs build --strict
lint:
cd apps/api && uv run --active ruff check .
cd apps/api && uv run --active mypy src
cd apps/web && npm run lint
test:
cd apps/api && uv run --active pytest
cd apps/web && npm test -- --run
check: lint test docs-build
cd apps/web && npm run build