Change-Id: Ia344adbdc06b9c6fe0a1e78ed2f9216592d9a392
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
 ---
 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
 
     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