.PHONY: help install test check validate ui fix-consistency
help: ## List targets
	@grep -E '^[a-z-]+:.*##' Makefile | sed 's/:.*##/ -/'
install: ## Install the engine and its test dependencies into the current environment (editable)
	python3 -m pip install -e ".[test]"
test: ## Run the test suite
	python3 -m pytest
check: ## Validate every pack, attribute set, project and template in this repository
	python3 -m rtut check .
validate: ## Validate runbook packs under runbooks/
	python3 -m rtut validate runbooks
ui: ## Serve the local UI for this repository on 127.0.0.1:8877
	python3 -m rtut ui .
fix-consistency: ## Sync workplans to State Hub: make fix-consistency REPO=runbook-tutorials
	statehub fix-consistency --repo $(REPO)
