From af6cda9073a3b1b14cab6237de7a49c683924f93 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 25 Aug 2024 12:04:24 +0200 Subject: [PATCH] Add shfmt to .pre-commit-config Run shfmt as part of the ci workflow. Signed-off-by: Ralph Sennhauser --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8728bc637..269096fdf9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,3 +45,12 @@ repos: types: [text] files: ^binaries/ exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$) + - repo: https://github.com/scop/pre-commit-shfmt + rev: v3.9.0-1 + hooks: + - id: shfmt + args: + - --diff + - --simplify + stages: [pre-commit] + exclude: ^build/premake/premake5/