Pin pre-commit to v2.9.3 in tox.ini 56/66656/1
authorEric Ball <eball@linuxfoundation.org>
Wed, 27 Jan 2021 23:08:25 +0000 (15:08 -0800)
committerEric Ball <eball@linuxfoundation.org>
Wed, 27 Jan 2021 23:08:25 +0000 (15:08 -0800)
A change in v2.10.0 of pre-commit introduces an incompatibility with
jumanjihouse/pre-commit-hooks, particularly the shellcheck hook. It
isn't clear whether this is intentional or not, but until either
pre-commit or the jumanjihouse hooks are updated, we need to pin to
the working version of pre-commit.

Change-Id: I2aa74f9310f55603d2e57d83f79c6f1a51726994
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
tox.ini

diff --git a/tox.ini b/tox.ini
index b9d28d0..3dfd441 100644 (file)
--- 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
+    pre-commit==2.9.3
 commands =
     pre-commit run --all-files --show-diff-on-failure
     pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG