#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" git -C "$ROOT_DIR" config core.hooksPath .githooks echo "已启用 .githooks(Ruff 格式检查 + pytest pre-push 门禁)"