Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 2.14 KB
/
Copy pathMakefile
File metadata and controls
46 lines (35 loc) · 2.14 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
# Claude Workflow Engine — Developer Makefile
# ─────────────────────────────────────────────────────────────────────────────
# Usage:
# make install — full dev setup (deps + git hooks)
# make test — run test suite
# make lint — run ruff linter
# make fmt — auto-format with black + isort
# make coverage — coverage report with 50% threshold
# make clean — remove build/cache artifacts
.PHONY: install test lint fmt coverage clean
# ─── Setup ───────────────────────────────────────────────────────────────────
install:
pip install -r requirements.txt
pre-commit install
@echo "Dev environment ready. Git hooks installed."
# ─── Testing ─────────────────────────────────────────────────────────────────
test:
pytest tests/ -x --tb=short -q
coverage:
pytest tests/ --tb=short -q \
--cov=langgraph_engine \
--cov=src \
--cov-report=term-missing \
--cov-fail-under=50
# ─── Code Quality ─────────────────────────────────────────────────────────────
lint:
ruff check langgraph_engine/ scripts/ src/ --select E,W,F --ignore E501
fmt:
black langgraph_engine/ scripts/ src/ --line-length=120
isort langgraph_engine/ scripts/ src/ --profile=black --line-length=120
# ─── Cleanup ─────────────────────────────────────────────────────────────────
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
rm -rf .pytest_cache htmlcov .coverage