From: Eric Ball Date: Wed, 27 Jan 2021 23:08:25 +0000 (-0800) Subject: Pin pre-commit to v2.9.3 in tox.ini X-Git-Tag: v0.61.0~8 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=33873e8144656b47ec5025a1cae2a4878681d036;hp=44f406cbb141c28a33aae936baa6c0d90c844060;p=releng%2Fglobal-jjb.git Pin pre-commit to v2.9.3 in tox.ini 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 --- diff --git a/tox.ini b/tox.ini index b9d28d05..3dfd4411 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 + 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