.PHONY: test test-fast test-cov lint format typecheck docs build clean install-dev

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

test:
	pytest tests/ -v

test-fast:
	pytest tests/ -x -q --ignore=tests/test_comprehensive.py

test-cov:
	pytest tests/ -v --cov=arca --cov-report=html --cov-report=term

lint:
	ruff check arca tests

format:
	ruff format arca tests
	ruff check --fix arca tests

typecheck:
	mypy arca --ignore-missing-imports || true

docs:
	@echo "Run 'mkdocs serve' or open docs/ directly"

build:
	python -m build

clean:
	rm -rf build/ dist/ *.egg-info arca_agent.egg-info
	rm -rf arca_outputs/
	find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
	find . -type f -name '*.pyc' -delete
	find . -type f -name '.coverage' -delete
	find . -type d -name '.pytest_cache' -exec rm -rf {} + 2>/dev/null || true
	find . -type d -name 'htmlcov' -exec rm -rf {} + 2>/dev/null || true
	find . -type d -name '.mypy_cache' -exec rm -rf {} + 2>/dev/null || true
	find . -type d -name '.ruff_cache' -exec rm -rf {} + 2>/dev/null || true
