-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 962 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 962 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
.PHONY: test lint generate dev clean
test:
uv run pytest tests/ -v
test-cov:
uv run coverage run -m pytest tests/ -v
uv run coverage report
uv run coverage html
lint:
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
lint-fix:
uv run ruff check --fix src/ tests/
uv run ruff format src/ tests/
generate:
uv run python -m generator.generate --count 10 --output generated_docs/
demo-samples:
rm -rf demo_samples/
PYTHONPATH=src uv run python -c "from generator.scenario import LoanScenario; from generator.generate import generate_scenario_documents; from pathlib import Path; s = LoanScenario.generate(); generate_scenario_documents(s, Path('demo_samples'))"
@echo "Demo samples regenerated in demo_samples/"
dev:
docker compose up --build
dev-down:
docker compose down -v
clean:
rm -rf generated_docs/ htmlcov/ .coverage .pytest_cache __pycache__
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true