.PHONY: test install uninstall validate check list clean dev

test:
	@if command -v uv >/dev/null 2>&1; then \
		uv run pytest; \
	else \
		python3 -m unittest discover -s tests -v; \
	fi

dev:
	uv sync

install:
	./data/apps/auto-toolkit/install.sh

uninstall:
	./bin/auto uninstall

validate:
	./bin/auto validate

check: validate test

list:
	./bin/auto list

clean:
	find . -type d -name "__pycache__" -exec rm -rf {} +
	find . -type f -name "*.pyc" -delete
	rm -rf .pytest_cache .ruff_cache
