From cd728d7c3b7f6242c53972d3b4355d7e60b54385 Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Wed, 9 Sep 2026 13:35:17 -0500 Subject: [PATCH] fix(lefthook): exclude docs/** from the format pre-commit job .oxfmtrc.json already ignores docs/**, so a docs-only staged commit left oxfmt with zero targets after its own filtering and it exited 2. Excluding docs/** from the format job's glob keeps lefthook and oxfmt in sync and skips the job cleanly on docs-only commits. Closes #126 --- lefthook.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/lefthook.yml b/lefthook.yml index be5ecc35e..c8b11a58e 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -3,6 +3,7 @@ pre-commit: commands: format: glob: "*.{ts,js,json,md,yml,yaml}" + exclude: "docs/**" run: pnpm exec oxfmt --check {staged_files} fail_text: "Run 'pnpm format' to fix formatting." lint: