File size: 1,003 Bytes
f632ba8
 
 
 
32fcf60
 
 
 
 
 
cd46aca
 
 
 
 
 
 
32fcf60
f632ba8
 
32fcf60
cd46aca
32fcf60
f632ba8
cd46aca
f632ba8
 
32fcf60
 
 
 
 
 
 
 
 
85d55c2
32fcf60
 
53c4c46
 
 
 
 
 
 
 
 
32fcf60
f632ba8
32fcf60
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
49
50
51
52
.PHONY: install test lint format typecheck check clean all cov cov-html

# Default target
all: check

install:
	uv sync --all-extras
	uv run pre-commit install

test:
	uv run pytest tests/unit/ -v -m "not openai" -p no:logfire

test-hf:
	uv run pytest tests/ -v -m "huggingface" -p no:logfire

test-all:
	uv run pytest tests/ -v -p no:logfire

# Coverage aliases
cov: test-cov
test-cov:
	uv run pytest --cov=src --cov-report=term-missing -m "not openai" -p no:logfire

cov-html:
	uv run pytest --cov=src --cov-report=html -p no:logfire
	@echo "Coverage report: open htmlcov/index.html"

lint:
	uv run ruff check src tests

format:
	uv run ruff format src tests

typecheck:
	uv run mypy src

check: lint typecheck test-cov
	@echo "All checks passed!"

docs-build:
	uv run mkdocs build

docs-serve:
	uv run mkdocs serve

docs-clean:
	rm -rf site/

clean:
	rm -rf .pytest_cache .mypy_cache .ruff_cache __pycache__ .coverage htmlcov
	find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true