-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 1.12 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
.PHONY: install lint type test smoke bench serve reproduce clean
install:
uv sync
lint:
uv run ruff check src/ bench/ tests/
uv run ruff format --check src/ bench/ tests/
fmt:
uv run ruff format src/ bench/ tests/
uv run ruff check --fix src/ bench/ tests/
type:
uv run mypy src/divergencelens/
test:
uv run pytest tests/unit/ -q --tb=short
smoke:
uv run pytest tests/smoke/ -q --tb=short -v
bench:
uv run divergencelens bench --split test --seeds 3 --output-dir results/
serve:
uv run divergencelens serve --host 0.0.0.0 --port 8000
reproduce:
@echo "Regenerating DivergenceBench and computing all metrics..."
PYTHONPATH=. uv run python -m bench.metrics.compute
PYTHONPATH=. uv run python -c "from bench.baselines.runner import run_all_baselines; run_all_baselines()"
PYTHONPATH=. uv run python -c "from bench.ablations.ablations import run_ablations; run_ablations()"
@echo "Done. See results/RESULTS.md"
clean:
rm -rf .cache/ results/ dist/ build/ __pycache__ .mypy_cache .pytest_cache
find . -name "*.pyc" -delete
find . -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
ci: lint type test smoke