-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 914 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (25 loc) · 914 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
.PHONY: sync lint format check unit-test integration-test parser parser-smoke precommit-install precommit-run
# Extras the unit tests import directly (chromadb, cohere, typer). Kept in sync
# with the `unit-test` job in .github/workflows/ci.yml.
DEV_EXTRAS := --extra cli --extra chroma --extra rerank-cohere
sync:
uv sync --group dev $(DEV_EXTRAS)
lint:
uv run ruff check .
uv run ruff format --check .
format:
uv run ruff format .
check: lint
python3 -m compileall xrag examples tools
unit-test:
uv run $(DEV_EXTRAS) pytest tests/unit -q
integration-test:
uv run pytest tests/integration -q
parser:
uv run python -m xrag.cli parser --config configs/baseline.yml --pretty
parser-smoke:
uv run python -m xrag.cli parser --config configs/baseline.yml --output-dir data/artifacts/smoke-test --pretty
precommit-install:
uv run pre-commit install
precommit-run:
uv run pre-commit run --all-files