Select Git revision
-
nimrod authored
- Use types instead of files regex, set minimal version of pre-commit to 0.15.0 accordingly. - Now that the minimum version of pre-commit is 0.15.0, remove legacy hooks.yaml file. - Updated README. - Bumped minore version.
nimrod authored- Use types instead of files regex, set minimal version of pre-commit to 0.15.0 accordingly. - Now that the minimum version of pre-commit is 0.15.0, remove legacy hooks.yaml file. - Updated README. - Bumped minore version.
README.rst 1.22 KiB
Shell pre-commit hooks
Shell pre-commit hooks.
Hooks
-
code: shell-lint - Runs /bin/sh -en
against identified shellscripts.
-
code: shellcheck - Runs `shellcheck <https://github.com/koalaman/shellcheck/>`_ agains identified shell scripts.
Dependencies
-
code: /bin/sh -
code: shellcheck - Pre-commit 0.15.0 or later.
Installation
Add the following to your .pre-commit-config.yaml
:
- repo: https://www.shore.co.il/git/shell-pre-commit/
sha: v0.6.0
hooks:
- id: shell-lint
- id: shellcheck
And run pre-commit autoupdate
to update the hooks.
License
This software is licensed under the MIT license (see the LICENSE.txt
file).
Author Information
Nimrod Adar, contact me or visit my website. Patches are welcome via git send-email. The repository is located at: https://www.shore.co.il/git/.