#!/usr/bin/env bash
set -euo pipefail

jarl check . || {
  jarl check . --fix --allow-dirty || true
  echo "Jarl fixed issues. Stage and recommit." >&2
  exit 1
}

air format . --check || {
  air format .
  echo "Air reformatted files. Stage and recommit." >&2
  exit 1
}
