-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 876 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (23 loc) · 876 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
.DEFAULT_GOAL := help
.PHONY: help sync test lint types check eval build install clean
help: ## Show this help
@grep -hE '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) \
| awk 'BEGIN{FS=":.*?## "}{printf " \033[36m%-8s\033[0m %s\n", $$1, $$2}'
sync: ## Install dependencies (uv sync)
uv sync
test: ## Run the test suite
uv run pytest
lint: ## Lint with ruff
uv run ruff check .
types: ## Type-check with ty
uv run ty check
check: lint types test ## Lint + type-check + tests (the pre-commit gate)
eval: ## Score citation accuracy against evals/cases.toml (file-F1 + line-F1)
uv run python evals/run.py
build: ## Build the wheel
uv build --wheel
install: ## Install the fcx CLI globally (uv tool install)
uv tool install .
clean: ## Remove build artifacts and caches
rm -rf dist build *.egg-info .pytest_cache
find . -type d -name __pycache__ -exec rm -rf {} +