.PHONY: install test lint typecheck run clean

# Default target
all: install test

install:
	python -m pip install --upgrade pip
	pip install -e ".[dev]"

test:
	python -m pytest -q

lint:
	ruff check src/ tests/

typecheck:
	mypy src/

run:
	python -m palmer_mail

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