mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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:
parent
a04a5f70c7
commit
af6cda9073
1 changed files with 9 additions and 0 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Reference in a new issue