-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 1.19 KB
/
Makefile
File metadata and controls
40 lines (27 loc) · 1.19 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
39
40
.PHONY: help install lint typecheck test smoke check build clean run site site-dev site-preview
.DEFAULT_GOAL := help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-14s\033[0m %s\n", $$1, $$2}'
install: ## Create venv and install deps
uv venv && uv pip install -e ".[dev]"
lint: ## Run ruff linter
uv run ruff check src/ tests/
typecheck: ## Run mypy --strict
uv run mypy src/
test: ## Run unit + integration tests
uv run pytest tests/ -v --cov=hive --cov-report=term-missing
smoke: ## Run e2e smoke tests (needs Ollama + API key)
uv run pytest -m smoke -v
check: lint typecheck test ## Lint + typecheck + test
build: check ## Check + build package
uv build
run: ## Run Hive MCP server locally
uv run python -m hive.server
site: ## Build landing page (requires Node.js)
cd site && npm ci && npm run build
site-dev: ## Start landing page dev server
cd site && npm run dev
site-preview: ## Preview landing page production build
cd site && npm run preview
clean: ## Remove build artifacts
rm -rf dist/ .venv/ *.egg-info/ .ruff_cache/ .mypy_cache/ .pytest_cache/ htmlcov/ .coverage site/dist/ site/node_modules/