.PHONY: install dev test lint typecheck fmt clean serve docker

install:
	pip install -e .

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

test:
	pytest -v

lint:
	ruff check .

typecheck:
	mypy gothos --ignore-missing-imports

fmt:
	ruff format .
	ruff check --fix .

clean:
	find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
	find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
	rm -rf .pytest_cache .mypy_cache .ruff_cache dist build

serve:
	gothos serve

docker:
	docker build -t gothos .

all: fmt lint typecheck test
