.PHONY: install lint typecheck test check clean verifytypes

install:
	uv pip install -e ".[dev]"

lint:
	ruff check src/ tests/
	ruff format --check src/ tests/

format:
	ruff format src/ tests/
	ruff check --fix src/ tests/

typecheck:
	mypy src/orchcore/ --strict

test:
	pytest tests/ -v

check: lint typecheck test
	@echo "All checks passed."

verifytypes:
	uv run pyright --verifytypes orchcore --ignoreexternal

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