From 631f7b292e9c44f7b8efc6b44d74d0afc6edef1e Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Tue, 27 Aug 2024 16:16:10 +0200 Subject: [PATCH] Add pre-commit hook for shellcheck Using shellcheck-py[1] instead of the official shellcheck-precommit[2] to avoid a dependency on docker. [1] https://github.com/shellcheck-py/shellcheck-py [2] https://github.com/koalaman/shellcheck-precommit Signed-off-by: Ralph Sennhauser --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df2c8247f8..a213d5dc21 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,6 +54,11 @@ repos: - --simplify stages: [pre-commit] exclude: ^build/premake/premake5/ + - repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.10.0.1 + hooks: + - id: shellcheck + exclude: ^build/premake/premake5/ - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.41.0 hooks: