.PHONY: help install test typecheck lint format check

help: ## Show available targets
	@awk 'BEGIN {FS = ":.*## "} /^[a-z-]+:.*## / {printf "  %-10s %s\n", $$1, $$2}' $(MAKEFILE_LIST)

install: ## Install all dependencies (incl. dev)
	uv sync --all-groups

test: ## Run the test suite
	uv run pytest

typecheck: ## Type-check with pyright (strict)
	uv run pyright

lint: ## Lint and check formatting
	uv run ruff check
	uv run ruff format --check

format: ## Auto-fix lint issues and format code
	uv run ruff check --fix
	uv run ruff format

check: lint typecheck test ## Run everything CI runs
