CONFIG?=config.yaml

install:
	uv pip install -e .
	uv tool install ruff
	uv tool install black

check:
	uv tool run black src/persevere
	uv tool run ruff check --fix src/persevere

test:
	uv run pytest

integration:
	find tests/fixtures/integration -name \*.yaml | while read scenario; do \
		make SCENARIO=$$scenario scenario_test; \
	done

scenario_test:
	uv run persevere -c ${CONFIG} test --text --scenario ${SCENARIO}

