Merge "Update cloud image CentOS7 devstack rocky"
[releng/builder.git] / .pre-commit-config.yaml
index 25be085b24359bd9b319596d4534d29a72bdba67..e15b6fde97d51b5a9b24e9fd50208ff21b4de46a 100644 (file)
@@ -13,6 +13,7 @@ repos:
     rev: v2.1.2
     hooks:
       - id: prettier
+        stages: [commit]
 
   - repo: https://github.com/jorisroovers/gitlint
     rev: v0.13.1
@@ -30,7 +31,7 @@ repos:
           )$
 
   - repo: https://github.com/ambv/black
-    rev: stable
+    rev: 20.8b1
     hooks:
       - id: black
 
@@ -45,7 +46,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: 5.0.2