clean:
	rm -rf env .coverage .pytest_cache .cache coverage.xml pyunit.xml
	find . | grep -E '__pycache__|\.pyc|\.pyo$\' | xargs rm -rf

env:
	python3.12 -m venv env
	env/bin/python -m pip install -q -U pip setuptools wheel
	env/bin/python -m pip install -q -I -r requirements.txt

lint:
	env/bin/python -m ruff check reserves_migration/

format:
	env/bin/python -m ruff format reserves_migration/

run:
	env/bin/python reserves_migration/main.py
