-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 1.77 KB
/
Makefile
File metadata and controls
33 lines (25 loc) · 1.77 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
.PHONY: run dev inspect lint format test clean help
# ── Server ─────────────────────────────────────────────────────────────
run: ## Run the MCP server (stdio transport)
uv run mcp run server.py
dev: ## Run with MCP Inspector for interactive debugging
uv run mcp dev server.py
# ── Code Quality ───────────────────────────────────────────────────────
lint: ## Run ruff linter
uv run ruff check .
format: ## Auto-format with ruff
uv run ruff format .
# ── Testing ────────────────────────────────────────────────────────────
test: ## Run test suite
uv run pytest -v
# ── Housekeeping ───────────────────────────────────────────────────────
clean: ## Remove caches and build artifacts
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
rm -rf dist/ build/
# ── Help ───────────────────────────────────────────────────────────────
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help