From 0e60f666043910afb96e9de2f84b0b8a68c7e4d6 Mon Sep 17 00:00:00 2001 From: Kevin King <64164523+Kking112@users.noreply.github.com> Date: Tue, 28 Oct 2025 19:32:45 -0400 Subject: ignore: python sdk (#2779) Co-authored-by: Aiden Cline --- script/hooks | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 script/hooks (limited to 'script') diff --git a/script/hooks b/script/hooks new file mode 100755 index 000000000..ea42297ae --- /dev/null +++ b/script/hooks @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ ! -d ".git" ]; then + exit 0 +fi + +mkdir -p .git/hooks + +cat > .git/hooks/pre-push << 'EOF' +#!/bin/sh +# Ensure dependencies are installed before typecheck +if command -v bun >/dev/null 2>&1; then + bun install >/dev/null 2>&1 || true +fi +bun run typecheck +EOF + +chmod +x .git/hooks/pre-push +echo "✅ Pre-push hook installed" -- cgit v1.2.3