Add shellcheck hook

Allows easy enablement of shellcheck without adding an extra git
cloning step.
This commit is contained in:
Sorin Sbarnea 2020-02-03 12:16:41 +00:00
parent 31853d6c43
commit 3cf7c2630b
2 changed files with 9 additions and 0 deletions

View file

@ -179,6 +179,14 @@
entry: requirements-txt-fixer
language: python
files: requirements.*\.txt$
- id: shellcheck
name: shellcheck
description: Test shell scripts with shellcheck
entry: shellcheck
language: python
types: [shell]
additional_dependencies: [shellcheck-py]
require_serial: true # shellcheck can detect sourcing this way
- id: sort-simple-yaml
name: Sort simple YAML files
language: python