PYTHON ?= .venv/bin/python
UV ?= uv

.PHONY: help venv install test test-archive clean

help:
	@echo "infospace-bench dev targets"
	@echo
	@echo "  make venv          create ./.venv via uv"
	@echo "  make install       install path deps (markitect-tool, artifactstore) into .venv"
	@echo "  make test          run the full pytest suite"
	@echo "  make test-archive  run only the artifact-store archive integration tests"
	@echo "  make clean         remove ./.venv and pytest caches"

venv:
	$(UV) venv

install: venv
	$(UV) pip install -e .
	$(UV) pip install pytest pytest-asyncio

test:
	$(PYTHON) -m pytest -q

test-archive:
	$(PYTHON) -m pytest tests/test_archive.py -q

clean:
	rm -rf .venv .pytest_cache
