.PHONY: help install dev-install test lint build clean

help:
	@echo "Available targets:"
	@echo "  install      install the package in current venv"
	@echo "  dev-install  install with [test] extras"
	@echo "  test         run the test suite"
	@echo "  lint         run ruff"
	@echo "  build        build sdist + wheel into dist/"
	@echo "  clean        remove build artifacts"

install:
	uv sync

dev-install:
	uv sync --extra test

test:
	uv run pytest -v

lint:
	uv run ruff check src tests

build:
	rm -rf dist/
	uv build

clean:
	rm -rf dist/ build/ src/*.egg-info .pytest_cache .ruff_cache
