generated from alex/base-template
fix: format sources and add lefthook pre-push validation #20
No reviewers
Labels
No labels
dependencies
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/irc-greeter-bot!20
Loading…
Reference in a new issue
No description provided.
Delete branch "pi/issue19-1785873839405"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
CI was failing because
deno fmt --checkflagged two files. This fixes the formatting and adds a Lefthookpre-pushhook so broken changes can't be pushed locally before passing CI.Fixes #19
Changes
Formatting fixes (unblock CI)
src/mutex.ts— was missing a trailing newline (the only code file flagged).README.md— a few prose lines exceeded the 80-column wrap width;deno fmtreflowed them.Lefthook pre-push hook
lefthook.ymlwith apre-pushhook that runs the exact same checks CI enforces:deno fmt --checkdeno lintdeno check src/main.tsdeno test --allow-env --allow-read --allow-writelefthook installto activate).Verification
All CI steps pass locally:
deno fmt --check→ 43 files OKdeno lint→ 32 files cleandeno check src/main.ts→ OKdeno test→ 243 passed, 0 failedNotes
lefthookbinary and a one-timelefthook install(documented in the README).deno task fallowstep, mirroring how the README documents it.