mbochniak01
Add typed client library, unit + integration tests, mypy, ruff, NOTES.md
10aced5
raw
history blame contribute delete
910 Bytes
.PHONY: install run test test-integration lint type-check eval-retail eval-pharma eval
install:
pip install -r requirements.txt
run:
cd backend && uvicorn app:app --reload --host 0.0.0.0 --port 8000
# Unit tests only (default — no server required)
test:
pytest tests/unit -v
# Integration tests — requires running server (make run in another terminal)
test-integration:
pytest tests/integration -v -m integration
lint:
ruff check client/ backend/ tests/
type-check:
mypy client/
eval-retail:
python eval/metrics.py --domain retail
open eval/reports/report_retail.html 2>/dev/null || xdg-open eval/reports/report_retail.html
eval-pharma:
python eval/metrics.py --domain pharma
open eval/reports/report_pharma.html 2>/dev/null || xdg-open eval/reports/report_pharma.html
eval:
python eval/metrics.py
open eval/reports/report_all.html 2>/dev/null || xdg-open eval/reports/report_all.html