-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 1.2 KB
/
Makefile
File metadata and controls
35 lines (25 loc) · 1.2 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
.PHONY: setup install test lint status regenerate clean help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
setup: ## Configure git hooks and install in dev mode
git config core.hooksPath .githooks
uv pip install -e ".[dev]"
@echo "\n✓ Hooks active, dev deps installed"
install: ## Install package in dev mode
uv pip install -e ".[dev]"
test: ## Run test suite
uv run pytest
lint: ## Run ruff linter
uv run ruff check src/ tests/
status: ## Check help template staleness
uv run attune-author status
regenerate: ## Regenerate all help templates
uv run python scripts/regenerate_help.py
eval: ## Full RAG hallucination benchmark (25 questions, 2 models — costs ~$3-8 in API calls)
cd benchmarks/hallucination-v0.3.9 && uv run python run_answers.py && uv run python run_judge.py && uv run python report.py
eval-smoke: ## Smoke RAG gate check (5 questions, 1 model — costs ~$0.10-0.30 in API calls)
uv run python benchmarks/smoke_eval.py
clean: ## Remove build artifacts
rm -rf build/ dist/ *.egg-info src/*.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true