deps:
	uv sync --active --extra dev

mypy:
	uv run --active mypy --ignore-missing-imports --pretty --no-color-output rawpipe/*.py

lint:
	uv run --active ruff check rawpipe/rawpipe.py

test: lint
	uv run --active pytest

install: test
	rm -rf build dist rawpipe.egg-info || true
	uv build
	uv pip install --upgrade dist/*.whl
	uv run python3 -c 'import rawpipe; print(f"Installed rawpipe version {rawpipe.__version__}.")'

release: install
	@echo "Publishing is handled by GitHub Actions with PyPI Trusted Publishing."
	@echo "Create a release tag and run the publish workflow instead."

.PHONY: deps lint test install release
