From 4d088120467aa9e66aa0059691f79317e138671d Mon Sep 17 00:00:00 2001 From: Eric Ball Date: Tue, 16 Feb 2021 16:40:46 -0800 Subject: [PATCH] Add workaround for pre-commit 2.10.0 The jumanjihouse shellcheck hook errors without additional_dependencies being defined. While there is a PR open to add this fix, it has not yet been merged and released. Until it is, this workaround will enable using the latest versions of pre-commit and the jumanjihouse hooks. Github PR: https://github.com/jumanjihouse/pre-commit-hooks/pull/80 Change-Id: I0ec16952009128e25cccb6833698bf1bd864af2d Signed-off-by: Eric Ball --- .pre-commit-config.yaml | 3 ++- tox.ini | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b8d1f13..0b2f4a4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,9 +16,10 @@ repos: - id: gitlint - repo: https://github.com/jumanjihouse/pre-commit-hooks - rev: 2.1.1 + rev: 2.1.4 hooks: - id: shellcheck + additional_dependencies: [] - repo: https://github.com/btford/write-good rev: v1.0.4 diff --git a/tox.ini b/tox.ini index 3dfd4411..b9d28d05 100644 --- a/tox.ini +++ b/tox.ini @@ -52,7 +52,7 @@ commands = lftools license check-dir -r '.+' shell [testenv:pre-commit] basepython = python3 deps = - pre-commit==2.9.3 + pre-commit commands = pre-commit run --all-files --show-diff-on-failure pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG -- 2.16.6