Merge "Update cloud image Ubuntu18.04 mininet ovs"
[releng/builder.git] / .pre-commit-config.yaml
index bb8d8639c3b5751bcd1c31d9b5095692b3922796..8395ce92d7155fe93a45b13edfeed7322b6da724 100644 (file)
@@ -4,24 +4,25 @@ default_language_version:
   node: "14.13.0"
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v3.4.0
+    rev: v4.2.0
     hooks:
       - id: check-json
       - id: trailing-whitespace
 
   - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v2.2.1
+    rev: v2.6.2
     hooks:
       - id: prettier
         stages: [commit]
 
   - repo: https://github.com/jorisroovers/gitlint
-    rev: v0.15.1
+    rev: v0.17.0
     hooks:
       - id: gitlint
+        stages: [commit-msg]
 
   - repo: https://github.com/jumanjihouse/pre-commit-hooks
-    rev: 2.1.5
+    rev: 2.1.6
     hooks:
       - id: shellcheck
         exclude: >
@@ -32,7 +33,7 @@ repos:
           )$
 
   - repo: https://github.com/ambv/black
-    rev: 21.6b0
+    rev: 22.3.0
     hooks:
       - id: black
 
@@ -43,11 +44,11 @@ repos:
         args: ["--max-line-length=88"]
 
   - repo: https://github.com/pycqa/bandit
-    rev: 1.7.0
+    rev: 1.7.4
     hooks:
       - id: bandit
         # Bandit does not need to run on test code
-        exclude: tests/*
+        exclude: ^tests/
 
   - repo: https://github.com/pycqa/pydocstyle
     rev: 6.1.1
@@ -55,12 +56,12 @@ repos:
       - id: pydocstyle
 
   - repo: https://github.com/adrienverge/yamllint
-    rev: v1.26.1
+    rev: v1.26.3
     hooks:
       - id: yamllint
 
   - repo: https://github.com/btford/write-good
-    rev: v1.0.4
+    rev: v1.0.8
     hooks:
       - id: write-good
         exclude: docs/jenkins.rst