Chore: Update pre-commit and tox dependencies 23/70523/1
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 22 Aug 2022 21:39:14 +0000 (07:39 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 22 Aug 2022 21:41:54 +0000 (07:41 +1000)
Change-Id: Ia344adbdc06b9c6fe0a1e78ed2f9216592d9a392
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.pre-commit-config.yaml
tox.ini

index c1879a6..b10b09b 100644 (file)
@@ -1,11 +1,11 @@
 ---
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v1.3.0
+    rev: v4.1.0
     hooks:
       - id: trailing-whitespace
 
   - repo: https://github.com/jorisroovers/gitlint
-    rev: v0.11.0
+    rev: v0.17.0
     hooks:
       - id: gitlint
diff --git a/tox.ini b/tox.ini
index 2efc906..0407f2f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -12,15 +12,16 @@ deps =
     ansible-lint~=4.2.0
     detox~=0.18
     docker
-    molecule
+    yamllint
+    molecule~=3.0.8
+    molecule[docker]
     pytest~=5.4.0
 passenv = *
 commands =
     ./molecule.sh
 
 [testenv:pre-commit]
-basepython = python3
 deps = pre-commit
 commands =
-    pre-commit install --hook-type commit-msg
-    pre-commit run --all-files
+    pre-commit run --all-files --show-diff-on-failure
+    pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG