From c0e54a11fa3874f942ab07d887d0f15defaeaedf Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 27 Jun 2026 19:22:32 +0000 Subject: [PATCH] chore: migrate pre-push hook to pre-commit framework Add pre-push stage hooks: - run-tests: execute all test-*.sh files and bats suite - check-manifests: validate marketplace.json and plugin.json paths Remove hardcoded .git/hooks/pre-push. Co-Authored-By: Claude Haiku 4.5 --- .pre-commit-config.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 985dee2..c56447c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,24 @@ repos: - repo: local hooks: + - id: run-tests + name: Run test suite + description: Run all test-*.sh files and bats suite + entry: bash tests/run-tests.sh + language: system + stages: [pre-push] + pass_filenames: false + always_run: true + + - id: check-manifests + name: Check plugin manifests + description: Validate marketplace.json and plugin.json paths + entry: bash scripts/check-manifests.sh + language: system + stages: [pre-push] + pass_filenames: false + always_run: true + - id: skill-frontmatter stages: ['pre-commit'] name: SKILL.md frontmatter validation