CI: Update pre-commit checks to latest versions 45/67845/3
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 31 May 2021 08:40:08 +0000 (10:40 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Thu, 3 Jun 2021 08:53:18 +0000 (10:53 +0200)
This updates the pre-commit checks to the latest versions of the checks
we're using and fixes a linting issue in our YAML config.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ib0741cb73f678597576c84c3a1064c88931599d4

.pre-commit-config.yaml

index 820563c..173578d 100644 (file)
@@ -4,17 +4,21 @@ default_language_version:
 
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v3.1.0
+    rev: v3.4.0
     hooks:
       - id: trailing-whitespace
+      - id: no-commit-to-branch
+        args:
+          - --branch=master
+          - --branch=main
 
   - repo: https://github.com/jorisroovers/gitlint
-    rev: v0.13.1
+    rev: v0.15.1
     hooks:
       - id: gitlint
 
   - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v2.1.2
+    rev: v2.2.1
     hooks:
       - id: prettier
         stages: [commit]