1
0
forked from 0ad/0ad

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 <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2024-08-27 16:16:10 +02:00 committed by Stan
parent 6f5ac7c4ae
commit 631f7b292e

View File

@ -54,6 +54,11 @@ repos:
- --simplify - --simplify
stages: [pre-commit] stages: [pre-commit]
exclude: ^build/premake/premake5/ 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 - repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0 rev: v0.41.0
hooks: hooks: