From 1d09ac59967d06e2c070d6369a7003f8c72d4d70 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 4 Feb 2025 18:05:10 +0100 Subject: [PATCH] ci: shell formatter check is on part with editor one --- lefthook.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lefthook.yaml b/lefthook.yaml index 4410eea..d1369fa 100644 --- a/lefthook.yaml +++ b/lefthook.yaml @@ -1,14 +1,11 @@ ---- skip_output: [meta, success] no_tty: true - commit-msg: commands: lint:convco: run: cat {1} | convco check --from-stdin lint:typos: run: cat {1} | typos - - pre-commit: parallel: false commands: @@ -16,11 +13,10 @@ pre-commit: run: typos {staged_files} shellcheck: glob: "*.sh" - run: shellcheck {staged_files} + run: shellcheck {staged_files} shfmt: glob: "*.sh" - run: shfmt -d -ln bash -i 4 {staged_files} - + run: shfmt -d -ln bash -i 2 {staged_files} pre-push: parallel: false commands: