Skip to content

chore: add Lefthook commit and push checks#164

Merged
V3RON merged 3 commits into
mainfrom
codex/pre-commit-lefthook
May 29, 2026
Merged

chore: add Lefthook commit and push checks#164
V3RON merged 3 commits into
mainfrom
codex/pre-commit-lefthook

Conversation

@V3RON
Copy link
Copy Markdown
Contributor

@V3RON V3RON commented May 29, 2026

Outcome

This adds local Git hooks that format staged JS, Kotlin, and Swift files before commit and run affected tests before push. Having these checks locally reduces avoidable CI churn and shortens the feedback loop by catching formatting and test failures before changes leave the machine.

How it was achieved

The repo now uses Lefthook to run staged-file formatters on pre-commit and parallel pre-push test jobs. Prettier, ktlint, and SwiftFormat handle their matching staged files, while Turbo coordinates affected JS tests and package-scoped native tests when Android or iOS client files changed.

V3RON added 3 commits May 29, 2026 12:18
Install Lefthook and configure a pre-commit hook that formats staged JavaScript-related files with Prettier while preserving full-repo format scripts.
Extend Lefthook pre-commit formatting to staged Kotlin and Swift files using the existing native formatter tools.
Configure Lefthook pre-push checks for affected JavaScript tests and native package test tasks through Turbo.
@V3RON V3RON merged commit d8eb5ce into main May 29, 2026
11 of 12 checks passed
@V3RON V3RON deleted the codex/pre-commit-lefthook branch May 29, 2026 10:38
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