.PHONY: install-dev test lint typecheck all clean

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

test:
	pytest tests/ -v --tb=short

test-cov:
	pytest tests/ -v --cov=devmemory --cov-report=term-missing

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

format:
	ruff format src/ tests/

typecheck:
	mypy src/devmemory/

all: lint typecheck test

clean:
	rm -rf .pytest_cache __pycache__ .mypy_cache .ruff_cache dist build *.egg-info
