#!/usr/bin/env bash
set -e

echo "--- ruff ---"
uv run ruff format .
uv run ruff check --fix .
git diff --exit-code || { echo "ruff auto-fixed files — review and re-stage"; exit 1; }

echo "--- mypy ---"
uv run mypy .

echo "--- pytest ---"
uv run pytest --cov=arcengine --cov-fail-under=100
