From: SONOLET Aymeric Date: Tue, 19 Dec 2023 16:41:36 +0000 (+0100) Subject: format(sh): Add shell script pre-commit config X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2bf39478f90c6cb8fd846fd1a2ee9e29e09f1bc6;p=modules%2Fshaper.git format(sh): Add shell script pre-commit config --- 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]