-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 894 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (29 loc) · 894 Bytes
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-dev lint format-check typecheck test eval-baseline eval-hybrid eval-compare check
VENV ?= .venv
ifneq ($(wildcard $(VENV)/bin/python),)
PYTHON ?= $(VENV)/bin/python
PIP ?= $(VENV)/bin/pip
else
PYTHON ?= python
PIP ?= $(PYTHON) -m pip
endif
RUFF ?= $(PYTHON) -m ruff
MYPY ?= $(PYTHON) -m mypy
PYTEST ?= $(PYTHON) -m pytest
install-dev:
$(PIP) install -e '.[dev]'
lint:
$(RUFF) check .
format-check:
$(RUFF) format --check .
typecheck:
$(MYPY) src/agentic_rag
test:
$(PYTEST) --cov=src/agentic_rag --cov-report=term-missing --cov-fail-under=85
eval-baseline:
$(PYTHON) -m agentic_rag.evaluation --check-baseline
eval-hybrid:
$(PYTHON) -m agentic_rag.evaluation --retrieval-mode hybrid --check-baseline
eval-compare:
$(PYTHON) -m agentic_rag.evaluation --retrieval-mode hybrid --compare-to tests/eval/baseline_dense.json
check: lint format-check typecheck test