.PHONY: install dev test lint format clean build publish

install:
	pip install -e .

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

test:
	pytest -v

lint:
	ruff check lunar/ tests/
	mypy lunar/

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

clean:
	rm -rf dist/ build/ *.egg-info
	find . -type d -name __pycache__ -exec rm -rf {} +
	find . -type f -name "*.pyc" -delete

build: clean
	python -m build

publish: build
	twine upload dist/*
