-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.02 KB
/
Makefile
File metadata and controls
48 lines (38 loc) · 1.02 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
.PHONY: install test test-cov lint typecheck format clean build all reproduce
# Development setup
install:
uv sync --all-extras
# Run tests
test:
uv run pytest
# Run tests with coverage
test-cov:
uv run pytest --cov=contextrag --cov-report=term-missing
# Lint code
lint:
uv run ruff check src tests
# Type check
typecheck:
uv run mypy src/contextrag
# Format code
format:
uv run ruff format src tests
uv run ruff check --fix src tests
# Clean build artifacts
clean:
rm -rf build/ dist/ *.egg-info/ .pytest_cache/ .mypy_cache/ .ruff_cache/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
# Build distribution
build: clean
uv build
# Run all checks (lint, typecheck, test)
all: lint typecheck test
# Run a local matrix comparison (uniform vs router)
reproduce:
uv run contextrag matrix \
--dataset data/eval-expanded \
--baselines uniform,router \
--k-values 3,5,10 \
--embed-provider local \
--run-root runs/matrix_eval_expanded_local \
--persist-root runs/chroma-matrix-eval-expanded-local