]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
pre-commit: Reorder
authorStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:34:16 +0000 (17:34 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:34:53 +0000 (17:34 +0100)
Place faster checks first.

Signed-off-by: Stephen Finucane <stephen@that.guru>
.pre-commit-config.yaml

index cff9d07da8f6518b3afe4097822ec634ac8faed1..503d36c283d340a3a274866b88c5ff71ce55b9fe 100644 (file)
@@ -13,6 +13,13 @@ repos:
         exclude: (.*\.mbox)|(.*\.css)|(.*\.json)|(.*\.js)|(.*\.svg)|(.*/mails/.*-subject\.txt)|(tools/docker/db)
       - id: trailing-whitespace
         exclude: (.*\.mbox)|(.*\.svg)
+  - repo: https://github.com/Lucas-C/pre-commit-hooks
+    rev: v1.5.1
+    hooks:
+      - id: remove-tabs
+        exclude: (.*\.mbox)|(.*\.svg)|(.*\.sql)|(.*\.conf)
+      - id: remove-crlf
+        exclude: (.*\.mbox)|(.*\.svg)
   - repo: https://github.com/pycqa/flake8
     rev: 6.1.0
     hooks:
@@ -25,10 +32,3 @@ repos:
     rev: 23.7.0
     hooks:
       - id: black
-  - repo: https://github.com/Lucas-C/pre-commit-hooks
-    rev: v1.5.1
-    hooks:
-      - id: remove-tabs
-        exclude: (.*\.mbox)|(.*\.svg)|(.*\.sql)|(.*\.conf)
-      - id: remove-crlf
-        exclude: (.*\.mbox)|(.*\.svg)