.PHONY: dev lint format typecheck test all publish clean

dev:
	uv sync --all-extras

lint:
	uv run ruff check .
	uv run ruff format --check .

format:
	uv run ruff check --fix .
	uv run ruff format .

typecheck:
	uv run mypy --strict src

test:
	uv run pytest -q

all: lint typecheck test

publish:
	uv build
	uv publish

clean:
	rm -rf dist/ build/ *.egg-info src/harness_memory/_version.py
