Add shfmt to .pre-commit-config

Run shfmt as part of the ci workflow.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2024-08-25 12:04:24 +02:00
parent a04a5f70c7
commit af6cda9073

View File

@ -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/