# Client (Python). `check` runs on the oldest and newest supported Python.
PYTHONS ?= 3.10 3.14
export UV_PYTHON_PREFERENCE := only-managed
.PHONY: check lint test

check: lint
	@for py in $(PYTHONS); do \
	  echo "== pytest on Python $$py"; \
	  uv run --python $$py --isolated --group dev pytest || exit 1; \
	done

lint:
	uv run --group dev ruff check .
	uv run --group dev ruff format --check .
	uv run --group dev mypy
