Commit a2370b4d authored by nimrod's avatar nimrod
Browse files

- Added shellchekc hook.

parent cf1439a3
Loading
Loading
Loading
Loading
+2 −1
Changes for README.rst: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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.

+7 −1
Changes for hooks.yaml: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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