-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (39 loc) · 837 Bytes
/
Copy pathMakefile
File metadata and controls
54 lines (39 loc) · 837 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
51
52
53
54
.PHONY: run dev test evals lint format migrate docker-up docker-down
# Development
run:
uvicorn codegraph.main:app --host 0.0.0.0 --port 8080 --reload
dev: docker-up run
# Docker
docker-up:
docker-compose up -d
docker-down:
docker-compose down
# Testing
test:
pytest tests/ -v --cov=src/codegraph
test-unit:
pytest tests/unit/ -v
evals:
python -m evals.run_evals
# Code quality
lint:
ruff check src/ tests/
mypy src/codegraph/
format:
ruff format src/ tests/
ruff check --fix src/ tests/
# Database
migrate:
alembic upgrade head
migrate-new:
alembic revision --autogenerate -m "$(msg)"
# Celery worker
worker:
celery -A codegraph.tasks.celery_app worker --loglevel=info
# Frontend
frontend-dev:
cd frontend && npm run dev
frontend-build:
cd frontend && npm run build
# Full stack
all: docker-up migrate run