diff --git a/README.rst b/README.rst index 29d194955e2d58f837acbcf0458bd321eee856b0..e53f9470f627e803ab4cfb9976b0c4740a684c10 100644 --- a/README.rst +++ b/README.rst @@ -21,9 +21,10 @@ Add the following to your :code:`.pre-commit-config.yaml`: .. code:: yaml - repo: https://www.shore.co.il/git/shell-pre-commit/ - sha: v0.2.0 + sha: v0.3.0 hooks: - id: shell-lint + - id: shellcheck And run :code:`pre-commit autoupdate` to update the hooks. diff --git a/hooks.yaml b/hooks.yaml index d8408996c2cdfbafade5225554988594a65be6dc..f4ac44a54cb25b55edf5af56b73dc95702ec511e 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -5,4 +5,10 @@ language: system entry: /bin/sh args: ['-en'] - files: \.(sh|bash|ksh|zsh)$ + files: &shell_scripts \.(sh|bash|ksh|zsh)$ +- id: shellcheck + name: shellcheck + description: A shell script static analysis tool + language: system + entry: shellcheck + files: *shell_scripts