# Makefile for Thespis development

.PHONY: help install format check clean

help:
	@echo "Available commands:"
	@echo "  make install  - Install dev dependencies"
	@echo "  make format   - Format code with black and isort"
	@echo "  make check    - Check code formatting"
	@echo "  make clean    - Clean build artifacts"

install:
	pip install -e ".[dev]"
	playwright install chromium
	pre-commit install

format:
	black thespis/
	isort thespis/

check:
	black thespis/ --check
	isort thespis/ --check-only
	pre-commit run --all-files

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