-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
38 lines (26 loc) · 1.04 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
.PHONY: up down run worker test lint typecheck migrate revision eval
up: ## start postgres + redis + minio
docker compose up -d
docker compose run --rm createbucket
down:
docker compose down
run: ## run the API (webhook) locally
uv run uvicorn app.main:app --reload --port 8000
worker: ## run the arq worker (process_bundle + SLA watchdog + daily metrics cron)
uv run arq app.worker.WorkerSettings
telegram-poll: ## local Telegram dev: long-poll updates (no tunnel needed; run `make worker` too)
uv run python -m app.telegram_poll
review: ## run the internal review page (same app as run, at /review)
uv run uvicorn app.main:app --reload --port 8000
test:
uv run pytest -q
lint:
uv run ruff check app tests
typecheck:
uv run mypy app
migrate: ## apply migrations
uv run alembic upgrade head
revision: ## autogenerate a migration: make revision m="message"
uv run alembic revision --autogenerate -m "$(m)"
eval: ## golden-set eval (needs ANTHROPIC_API_KEY)
uv run python -m evals.run_eval