Fix yangtools sonar job
[releng/builder.git] / .pre-commit-config.yaml
index bb8d8639c3b5751bcd1c31d9b5095692b3922796..734653f2dc41799d8d8be66e33344b7d1cbaaed0 100644 (file)
@@ -4,21 +4,22 @@ default_language_version:
   node: "14.13.0"
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v3.4.0
+    rev: v4.0.1
     hooks:
       - id: check-json
       - id: trailing-whitespace
 
   - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v2.2.1
+    rev: v2.4.1
     hooks:
       - id: prettier
         stages: [commit]
 
   - repo: https://github.com/jorisroovers/gitlint
-    rev: v0.15.1
+    rev: v0.16.0
     hooks:
       - id: gitlint
+        stages: [commit-msg]
 
   - repo: https://github.com/jumanjihouse/pre-commit-hooks
     rev: 2.1.5
@@ -32,7 +33,7 @@ repos:
           )$
 
   - repo: https://github.com/ambv/black
-    rev: 21.6b0
+    rev: 21.10b0
     hooks:
       - id: black
 
@@ -47,7 +48,7 @@ repos:
     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,7 +56,7 @@ repos:
       - id: pydocstyle
 
   - repo: https://github.com/adrienverge/yamllint
-    rev: v1.26.1
+    rev: v1.26.3
     hooks:
       - id: yamllint