Buckets:

glennmatlin's picture
download
raw
476 Bytes
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(git rev-parse --show-toplevel)"
HOOKS_PATH="scripts/git-hooks"
HOOK="$ROOT/$HOOKS_PATH/pre-push"
if [ ! -f "$HOOK" ]; then
echo "Error: pre-push hook not found at $HOOK" >&2
exit 1
fi
chmod +x "$HOOK"
git -C "$ROOT" config core.hooksPath "$HOOKS_PATH"
echo "Installed git hooks: core.hooksPath=$HOOKS_PATH"
echo "The pre-push hook runs git diff --check plus ruff check and ruff format --check on pushed Python files."

Xet Storage Details

Size:
476 Bytes
·
Xet hash:
db034d510d1ba038c7ea06b2ba4c726159c076cd40e9b4b466e1b54e0f5ed2b6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.