# Convenience targets for local development.
# Requires Python 3.10+ on PATH. All targets are thin wrappers around the
# same commands CI runs — there is no Make-only magic.

PYTHON ?= python3

.PHONY: setup test validate classify demo verify-ledger clean

setup:
	$(PYTHON) -m pip install -e .
	$(PYTHON) -m pip install pytest

test:
	$(PYTHON) -m pytest -q

validate:
	$(PYTHON) -m govtool validate

classify:
	$(PYTHON) -m govtool classify

demo:
	$(PYTHON) demo/run_demo.py

verify-ledger:
	$(PYTHON) -m govtool ledger verify

clean:
	rm -rf .pytest_cache build dist *.egg-info src/*.egg-info
	find . -type d -name __pycache__ -prune -exec rm -rf {} +
