From d973e3ea683638d23de95c49b755ef3c210acee3 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Fri, 3 Jul 2026 16:50:21 +0100 Subject: [PATCH] ci: add pre-push lefthook hook running oxfmt --check + oxlint --- lefthook.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lefthook.yml b/lefthook.yml index 2e8212d33cc..48c1e35e00d 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -4,3 +4,14 @@ pre-commit: jobs: - name: 🚫 Prevent main branch commits run: exit 1 + +# Mirror the CI code-quality check locally so unformatted / lint-failing pushes +# are caught before they hit the PR. Note: GitButler uses its own git +# implementation and only runs hooks when "Run hooks" is enabled in its +# settings - with that off, this protects plain `git push` only. +pre-push: + jobs: + - name: format + run: pnpm exec oxfmt --check . + - name: lint + run: pnpm exec oxlint .