.PHONY: install install-hooks setup lint format fix test check build publish

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

install-hooks:
	cp hooks/pre-push .git/hooks/pre-push
	chmod +x .git/hooks/pre-push
	@echo "Git hooks installed."

setup: install install-hooks

lint:
	ruff check agentbase/ tests/

format:
	ruff format agentbase/ tests/

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

test:
	pytest

check:
	ruff check agentbase/ tests/
	ruff format --check agentbase/ tests/
	pytest

build:
	python -m build

publish: build
	twine upload dist/*
