# thermograph-backend — local dev/test targets.
.PHONY: help test smoke clean-venv

help: ## List targets
	@grep -hE '^[a-z][a-zA-Z0-9_-]*:.*## ' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf "  %-14s %s\n", $$1, $$2}'

test: ## Build a py3.12 dev venv and run the hermetic pytest suite (pass ARGS=...)
	./scripts/test.sh $(ARGS)

smoke: ## Boot the backend image + a throwaway db and assert /healthz + /api/version
	./scripts/smoke.sh

clean-venv: ## Remove the test venv
	rm -rf .venv-test
