diff --git a/.travis.yml b/.travis.yml index e202b985df028ce2e8434286c24c4fb921484415..a0f51c1ba311b897dd1f5a8280cd72039e7e9c8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,14 @@ --- language: python -python: "2.7" +python: "3.5" dist: trusty sudo: false +cache: + - pip + - directories: + - $HOME/.pre-commit + install: - pip install pre_commit diff --git a/README.rst b/README.rst index 29d194955e2d58f837acbcf0458bd321eee856b0..4ad93089feb82047cc8d10e63268e028e1a3871f 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.4.0 hooks: - id: shell-lint + - id: shellcheck And run :code:`pre-commit autoupdate` to update the hooks. diff --git a/VERSION b/VERSION index 9325c3ccda9850bb6e102aef07d314210f5c9f41..1d0ba9ea182b0f7354f3daf12120744ec5e0c2f8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 \ No newline at end of file +0.4.0 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