.PHONY: test lint typecheck build install-dev publish-dry clean help

help:
	@echo "stripe-blade-mcp — available targets:"
	@echo "  test         Run pytest"
	@echo "  lint         Run ruff"
	@echo "  typecheck    Run mypy"
	@echo "  build        uv build (wheel + sdist)"
	@echo "  install-dev  Editable install via uv"
	@echo "  publish-dry  Build + twine check; no upload"
	@echo "  clean        Remove build artefacts"

test:
	uv run pytest -xvs

lint:
	uv run ruff check .

typecheck:
	uv run mypy src/

build:
	uv build

install-dev:
	uv pip install -e .

publish-dry:
	uv build && uv run twine check dist/*

clean:
	rm -rf dist/ build/ *.egg-info src/*.egg-info
	find . -type d -name __pycache__ -exec rm -rf {} +
	find . -type d -name .pytest_cache -exec rm -rf {} +
	find . -type d -name .ruff_cache -exec rm -rf {} +
	find . -type d -name .mypy_cache -exec rm -rf {} +
