#!/bin/sh
# Installed by SETUP.md via: git config core.hooksPath _meta/hooks
# Blocks commits with OKF/lint errors, modified raw files, or uncited raw files.
cd "$(git rev-parse --show-toplevel)" || exit 1
if ! command -v uv >/dev/null 2>&1; then
  echo "pre-commit: uv not found; install it (https://docs.astral.sh/uv/) or the vault checks cannot run." >&2
  exit 1
fi
exec uv run --quiet _meta/lint.py --staged --quiet
