-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 805 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (27 loc) · 805 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
.PHONY: dev test migrate migration shell lint fmt import-abc export-seed seed content thesession-import
dev:
uv run uvicorn cairn.main:app --reload --host 0.0.0.0 --port 8000
test:
uv run pytest
migrate:
uv run alembic upgrade head
migration:
@read -p "Migration message: " msg; uv run alembic revision --autogenerate -m "$$msg"
shell:
uv run python -i -c "import asyncio; from cairn.database import AsyncSessionLocal, engine"
lint:
uv run ruff check .
uv run ruff format --check .
fmt:
uv run ruff format .
uv run ruff check --fix .
import-abc:
uv run python scripts/import_abc.py
export-seed:
uv run python scripts/export_seed.py
seed:
uv run python scripts/seed.py
content:
uv run python scripts/import_content.py
thesession-import:
uv run python scripts/import_thesession.py