#!/bin/sh
set -eu

# Resolve a Python interpreter that can import the project package and
# expose it via $HOOK_PYTHON. Sets PATH so subprocess `language: system`
# hooks find a working `python`. Fails fast (exit 2) with an actionable
# setup message if no candidate has the project deps — covers both the
# local-no-venv case and a misconfigured CI env.
. ./.husky/_python_path.sh

exec "$HOOK_PYTHON" scripts/run_repo_hook.py pre-commit
