From 1d180634972fa1258c4a92e7413b3790539ad587 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Wed, 12 Jan 2022 18:06:45 -0300 Subject: [PATCH] pre-commit: Use system shellcheck. The official ShellCheck pre-commit hook uses a docker image, but it is, sometimes, unavailable. This change will use the system installed ShellCheck executable and does not depend on the image download. --- .pre-commit-config.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ca89536..79189cfe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,8 +38,10 @@ repos: entry: utils/ansible-doc-test # args: ['-v', 'roles', 'plugins'] files: ^.*.py$ -- repo: https://github.com/koalaman/shellcheck-precommit - rev: v0.8.0 +- repo: local hooks: - id: shellcheck - args: ["--severity=warning"] # Only show errors and warnings + name: ShellCheck + language: system + entry: shellcheck + files: \.sh$ -- GitLab