From e09cb0bd759fbfc03e2b443c3d9b24da67ffa6b5 Mon Sep 17 00:00:00 2001 From: Jean du Plessis Date: Tue, 2 Jun 2026 20:00:20 +0200 Subject: [PATCH] chore(dev): disable pre-push hook --- .husky/pre-push | 66 ------------------------------------------------- DEVELOPMENT.md | 1 - 2 files changed, 67 deletions(-) delete mode 100644 .husky/pre-push diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100644 index 94c5da8422..0000000000 --- a/.husky/pre-push +++ /dev/null @@ -1,66 +0,0 @@ -if [ "${KILO_CLOUD_AGENT:-}" = "1" ] || [ "${KILO_CLOUD_AGENT:-}" = "true" ]; then - base=$(git merge-base origin/main HEAD 2>/dev/null || true) - - if [ -n "$base" ]; then - pnpm format:changed - scripts/lint-changed.sh "$base" - - if git diff --name-only "$base" --diff-filter=ACMDR -- \ - '*.ts' \ - '*.tsx' \ - '**/tsconfig*.json' \ - '**/package.json' \ - 'pnpm-workspace.yaml' \ - | grep -q .; then - scripts/typecheck-all.sh --changes-only - else - echo "[pre-push] KILO_CLOUD_AGENT: no TS/config changes, skipping typecheck" - fi - else - echo "[pre-push] KILO_CLOUD_AGENT: no merge base found, running default checks" - pnpm format:check & - pid_format=$! - - scripts/lint-all.sh & - pid_lint=$! - - scripts/typecheck-all.sh --changes-only & - pid_typecheck=$! - - failed="" - wait $pid_format || failed="$failed format:check" - wait $pid_lint || failed="$failed lint" - wait $pid_typecheck || failed="$failed typecheck" - - if [ -n "$failed" ]; then - printf >&2 "\npre-push checks failed:%s\n" "$failed" - exit 1 - fi - fi - - command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path.\n\n"; exit 2; } - git lfs pre-push "$@" - exit $? -fi - -pnpm format:check & -pid_format=$! - -scripts/lint-all.sh & -pid_lint=$! - -scripts/typecheck-all.sh --changes-only & -pid_typecheck=$! - -failed="" -wait $pid_format || failed="$failed format:check" -wait $pid_lint || failed="$failed lint" -wait $pid_typecheck || failed="$failed typecheck" - -if [ -n "$failed" ]; then - printf >&2 "\npre-push checks failed:%s\n" "$failed" - exit 1 -fi - -command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path.\n\n"; exit 2; } -git lfs pre-push "$@" diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 59012613db..bef9592376 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -226,7 +226,6 @@ All tests should pass against the local PostgreSQL database. ## Git Workflow - Direct commits to `main` are blocked by a git hook. Always work on a feature branch. -- The pre-push hook runs `pnpm format:check`, `lint`, and `typecheck --changes-only` in parallel. ## Stripe Webhook Testing