.PHONY: run test test-unit test-integration test-cov lint format fix typecheck check install clean

run:
	uv run yahtzee-li

test:
	uv run pytest

test-unit:
	uv run pytest tests/unit

test-integration:
	uv run pytest tests/integration

test-cov:
	uv run pytest --cov=yahtzee_li --cov-report=term-missing

lint:
	uv run ruff check

format:
	uv run ruff format

fix:
	uv run ruff check --fix
	uv run ruff format

typecheck:
	uv run ty check

check: lint typecheck test

install:
	uv sync

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