.PHONY: lint test verify build release-check install-check

lint:
	uv run ruff check .

test:
	uv run pytest

verify: lint test build

build:
	rm -rf dist
	uv build --out-dir dist
	uv run twine check dist/*

release-check: build
	@test -n "$(TAG)" || (echo "usage: make release-check TAG=vX.Y.Z" && exit 2)
	uv run python scripts/verify_release.py "$(TAG)" dist

install-check:
	uv run --isolated --no-project --with ./dist/*.whl modwire --help
