.PHONY: install dev lint test bus-up bus-down clean

install:
	uv sync

dev:
	uv sync --all-extras

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

format:
	uv run ruff format src/ tests/
	uv run ruff check --fix src/ tests/

test:
	uv run pytest tests/ -v

bus-up:
	docker compose up -d

bus-down:
	docker compose down

bus-logs:
	docker compose logs -f nats

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