-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 793 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 793 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
.PHONY: setup run dev test lint clean frontend
PYTHON := $(shell command -v python3 2>/dev/null || command -v python 2>/dev/null)
VENV := .venv
BIN := $(VENV)/bin
setup:
@echo "==> Creating virtual environment..."
$(PYTHON) -m venv $(VENV)
$(BIN)/pip install --upgrade pip
$(BIN)/pip install -e ".[dev]"
@if [ ! -f .env ]; then cp .env.example .env && echo "==> Created .env from template (edit as needed)"; fi
@echo ""
@echo "Setup complete! Run: make run"
run:
$(BIN)/python -m quantgpt --transport http
dev:
$(BIN)/python -m quantgpt --transport http --port 8003
test:
$(BIN)/pytest tests/ -x -q
lint:
$(BIN)/ruff check quantgpt/ tests/
$(BIN)/pyright quantgpt/
frontend:
cd frontend && npm ci && npm run build
clean:
rm -rf $(VENV) *.egg-info __pycache__ quantgpt.db