.PHONY: help install-dev test fmt lint build

.DEFAULT_GOAL := help

help: ## Show this help message
	@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*##"}; {printf "  \033[36m%-12s\033[0m %s\n", $$1, $$2}'

install-dev: ## Install all dependencies (including dev)
	uv sync --extra dev

test: install-dev ## Run tests
	uv run pytest

fmt: ## Format code with black
	uv run --extra dev black src tests

lint: ## Check formatting (CI)
	uv run --extra dev black --check src tests

build: ## Build sdist and wheel into dist/
	uv build
