.PHONY: up down migrate test pipeline kind lint

up:
	docker compose up -d --build

down:
	docker compose down -v

migrate:
	docker compose exec api alembic upgrade head

test:
	cd api && uv run pytest -q
	cd web && npm test

lint:
	cd api && uv run ruff check . && uv run mypy app
	cd web && npm run check

pipeline:
	cd pipeline && nextflow run main.nf -profile docker --vcf ../data/example.vcf.gz --outdir results

kind:
	kind create cluster --name rarelens || true
	kubectl apply -k infra/k8s/overlays/local
