Skip to content

Commit

Permalink
Switch pre-commit hooks for running shellcheck
Browse files Browse the repository at this point in the history
This hook bundles the binaries for shellcheck with a Python package
which removes the need to ensure the tool is installed for the hook to
function. It also ties the version of shellcheck used to the hook which
will help guarantee consistency.
  • Loading branch information
mcdonnnj committed Mar 6, 2024
1 parent 9020b55 commit 035cf86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ repos:
- --case-indent
# Redirect operators are followed by a space
- --space-redirects
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shell-lint
- id: shellcheck

# Python hooks
- repo: https://github.com/PyCQA/bandit
Expand Down

0 comments on commit 035cf86

Please sign in to comment.