Skip to content

fix: remove Go-only lefthook hooks - #12

Merged
Patel230 merged 1 commit into
mainfrom
fix/lefthook-non-go
Aug 25, 2026
Merged

fix: remove Go-only lefthook hooks#12
Patel230 merged 1 commit into
mainfrom
fix/lefthook-non-go

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

lefthook.yml was copied from the Go repo template but hawk-sdk-typescript is a TypeScript project with no go.mod. The pre-push test/vet/govulncheck hooks fail on every push, forcing --no-verify.

Changes

  • lefthook.yml: remove Go-only hooks (fmt, imports, lint, test, vet, govulncheck)
  • Keep language-agnostic hooks: yaml-lint, forbidden-strings, commit-msg, prepare-commit-msg

Testing

  • Pre-commit and commit-msg hooks validated on the commit creating this PR
  • CI will validate on this PR

lefthook.yml was copied from the Go repo template but hawk-sdk-typescript
is a TypeScript project with no go.mod. The pre-push test/vet/govulncheck
hooks fail on every push, forcing --no-verify.

Keeps: yaml-lint, forbidden-strings, commit-msg
      (conventional-commit, strip-co-authored-by), prepare-commit-msg
Removes: fmt, imports, lint (pre-commit) and test, vet, govulncheck (pre-push)
@Patel230
Patel230 merged commit 16303bc into main Aug 25, 2026
2 checks passed
@Patel230
Patel230 deleted the fix/lefthook-non-go branch August 25, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant