Skip to content

chore: add fast Lefthook checks - #3

Merged
V3RON merged 1 commit into
mainfrom
agent/lefthook-fast-hooks
Jul 17, 2026
Merged

V3RON merged 1 commit into
mainfrom
agent/lefthook-fast-hooks

Conversation

@V3RON

@V3RON V3RON commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What changed

  • add Lefthook and install hooks automatically after pnpm install
  • run Oxfmt and Oxlint against relevant staged files before each commit
  • explicitly allow Lefthook's install script under pnpm's build-approval policy

Why

Catch formatting and code-style issues in under a second without duplicating the full test suite before every push. The existing pnpm check command remains the comprehensive validation gate.

Validation

  • pnpm exec lefthook run pre-commit --file package.json --file lefthook.yml --file pnpm-workspace.yaml --file src/cli/main.ts
  • pnpm check
  • committed through the installed pre-commit hook

@V3RON
V3RON marked this pull request as ready for review July 17, 2026 20:32
@V3RON
V3RON force-pushed the agent/lefthook-fast-hooks branch from 5daffdf to 7702cde Compare July 17, 2026 20:34
@V3RON
V3RON merged commit e170c96 into main Jul 17, 2026
2 checks passed
@V3RON V3RON mentioned this pull request Jul 17, 2026
2 tasks done
@V3RON
V3RON deleted the agent/lefthook-fast-hooks branch September 9, 2026 17:12
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