.PHONY: install lint format test check clean leaderboard

install:
	uv sync --all-extras
	uv run pre-commit install

lint:
	uv run ruff check invert tests
	uv run mypy invert tests

format:
	uv run ruff format invert tests

test:
	uv run pytest

check: lint test
	uv run pre-commit run --all-files

leaderboard:
	uv run python scripts/eval_all_release.py

clean:
	find . -type d -name "__pycache__" -exec rm -rf {} +
	find . -type d -name ".mypy_cache" -exec rm -rf {} +
	find . -type d -name ".ruff_cache" -exec rm -rf {} +
	find . -type d -name ".pytest_cache" -exec rm -rf {} +
