Skip to content

chore: add lefthook to run CI checks locally#844

Merged
kitsuyui merged 1 commit into
mainfrom
chore/add-lefthook
Jun 9, 2026
Merged

chore: add lefthook to run CI checks locally#844
kitsuyui merged 1 commit into
mainfrom
chore/add-lefthook

Conversation

@kitsuyui

@kitsuyui kitsuyui commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add lefthook.yml to mirror the CI lint and test checks as local Git hooks
  • Add a ## Development section to README.md documenting how to install and use the hooks
  • CI workflow files are not modified

What the hooks do

  • pre-commit: runs bun run lint (Biome static checks) for fast feedback before each commit
  • pre-push: runs bun run lint and bun run test so the full local suite passes before pushing

CI still runs the complete suite on every pull request and push to main; the hooks surface failures earlier in the development workflow.

Files changed

  • lefthook.yml (new)
  • README.md (Development section added before License)

Mirrors the lint and test scripts from CI into pre-commit and pre-push hooks. CI workflow is unchanged.
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🎉 Happy commit!

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Code Metrics Report

main (d6def62) #844 (50a98ea) +/-
Coverage 99.2% 99.2% 0.0%
Code to Test Ratio 1:0.5 1:0.5 0.0
Test Execution Time 2s 2s 0s
Details
  |                     | main (d6def62) | #844 (50a98ea) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          99.2% |          99.2% | 0.0% |
  |   Files             |              5 |              5 |    0 |
  |   Lines             |            134 |            134 |    0 |
  |   Covered           |            133 |            133 |    0 |
  | Code to Test Ratio  |          1:0.5 |          1:0.5 |  0.0 |
  |   Code              |           1678 |           1678 |    0 |
  |   Test              |            955 |            955 |    0 |
  | Test Execution Time |             2s |             2s |   0s |

Reported by octocov

@kitsuyui
kitsuyui merged commit 762434e into main Jun 9, 2026
5 checks passed
@kitsuyui
kitsuyui deleted the chore/add-lefthook branch June 9, 2026 17:24
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