-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (52 loc) · 2.64 KB
/
Makefile
File metadata and controls
72 lines (52 loc) · 2.64 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.PHONY: install install-dev lint format typecheck test test-cov run-forge run-dashboard clean setup precommit
# ── Installation ──────────────────────────────────────────────
install:
pip install -e ".[forge]"
install-dev:
pip install -e ".[forge,dev]"
pre-commit install
setup: install-dev
cp -n .env.example .env 2>/dev/null || true
echo "✓ Setup complete. Edit .env to configure your LLM provider."
# ── Quality ───────────────────────────────────────────────────
lint:
ruff check agent_forge/ dashboard/ tests/ --statistics
format:
ruff format agent_forge/ dashboard/ tests/
typecheck:
mypy agent_forge/ --ignore-missing-imports --python-version=3.12
# ── Testing ───────────────────────────────────────────────────
test:
python -m pytest tests/ -v --tb=short
test-cov:
python -m pytest tests/ -v --tb=short --cov=agent_forge --cov-report=term-missing
test-watch:
python -m pytest tests/ -f # fail-fast, re-run on changes
# ── Run ───────────────────────────────────────────────────────
run-forge:
python -m agent_forge
run-forge-cycles:
python -m agent_forge --cycles $(or ${CYCLES}, 10)
run-dashboard:
uvicorn dashboard.main:app --reload --port ${DASHBOARD_PORT:-8000}
# ── Maintenance ───────────────────────────────────────────────
clean:
rm -rf __pycache__ .pytest_cache .ruff_cache .mypy_cache
rm -rf *.egg-info dist build
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
precommit:
pre-commit run --all-files
help:
@echo "Grounded Agent Forge — Make targets:"
@echo " install Install forge dependencies"
@echo " install-dev Install forge + dev dependencies + pre-commit"
@echo " setup Full dev setup (install-dev + .env)"
@echo " lint Run ruff lint"
@echo " format Run ruff formatter"
@echo " typecheck Run mypy type checking"
@echo " test Run tests (short output)"
@echo " test-cov Run tests with coverage report"
@echo " run-forge Start evolution loop"
@echo " run-dashboard Start dashboard server"
@echo " clean Remove caches and build artifacts"
@echo " precommit Run all pre-commit hooks"