.PHONY: help install dev lint test serve agent db up down fmt

help:
	@echo "install   Install the package"
	@echo "dev       Install with dev extras (ruff, pytest)"
	@echo "lint      Run ruff"
	@echo "test      Run pytest"
	@echo "db        Start only the Postgres container"
	@echo "serve     Run the hub locally"
	@echo "up/down   docker compose up -d / down"

install:
	pip install .

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

lint:
	ruff check src tests

fmt:
	ruff check --fix src tests

test:
	pytest

db:
	docker compose up -d db

serve:
	nexor-agora serve

agent:
	nexor-agora agent

up:
	docker compose up -d

down:
	docker compose down
