From 2bf39478f90c6cb8fd846fd1a2ee9e29e09f1bc6 Mon Sep 17 00:00:00 2001 From: SONOLET Aymeric Date: Tue, 19 Dec 2023 17:41:36 +0100 Subject: [PATCH] format(sh): Add shell script pre-commit config --- .pre-commit-config.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51b086a81..039cf45ac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,16 @@ repos: rev: v14.0.0 # Use the sha / tag you want to point at hooks: - id: clang-format + - repo: https://github.com/scop/pre-commit-shfmt + rev: v3.7.0-4 + hooks: + # Choose one of: + - id: shfmt # prebuilt upstream executable + args: [--indent=4, -w, -s] + # - id: shfmt-src # build from source (requires/installs Go to build) + # - id: shfmt-docker # Docker image (requires Docker to run) + - repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.9.0.6 + hooks: + - id: shellcheck + args: [--severity=error] -- 2.39.2