Merge "Remove ansible from builder"
[releng/builder.git] / .pre-commit-config.yaml
index 7ff009625209fc5c8fd6108bdf87910f7020f754..1ca40ed0cd87e81b464d20952b5c7b410cc1e64a 100644 (file)
@@ -1,30 +1,64 @@
 ---
+default_language_version:
+  python: python3
+  node: "14.13.0"
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
     rev: v2.5.0
     hooks:
       - id: check-json
-      - id: flake8
-        args: ['--max-line-length=88']
-        exclude: docs/*
       - id: trailing-whitespace
 
+  - repo: https://github.com/prettier/pre-commit
+    rev: v2.1.2
+    hooks:
+      - id: prettier
+
   - repo: https://github.com/jorisroovers/gitlint
     rev: v0.13.1
     hooks:
       - id: gitlint
 
   - repo: https://github.com/jumanjihouse/pre-commit-hooks
-    sha: 2.0.2
+    rev: 2.0.2
     hooks:
       - id: shellcheck
         exclude: >
-            (?x)^(
-                jjb/global-jjb/.*|
-                jenkins-config/.*
-            )$
+          (?x)^(
+              jjb/global-jjb/.*|
+              jenkins-config/.*
+          )$
+
+  - repo: https://github.com/ambv/black
+    rev: stable
+    hooks:
+      - id: black
+
+  - repo: https://gitlab.com/pycqa/flake8
+    rev: 3.8.3
+    hooks:
+      - id: flake8
+        args: ["--max-line-length=88"]
+
+  - repo: https://github.com/pycqa/bandit
+    rev: 1.6.2
+    hooks:
+      - id: bandit
+        # Bandit does not need to run on test code
+        exclude: tests/*
+
+  - repo: https://github.com/pycqa/pydocstyle
+    rev: 5.0.2
+    hooks:
+      - id: pydocstyle
 
   - repo: https://github.com/adrienverge/yamllint
     rev: v1.23.0
     hooks:
       - id: yamllint
+
+  - repo: https://github.com/btford/write-good
+    rev: v1.0.3
+    hooks:
+      - id: write-good
+        exclude: docs/jenkins.rst