]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: run isort before other hooks
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 12 May 2025 15:13:57 +0000 (17:13 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 5 Jul 2025 17:13:54 +0000 (19:13 +0200)
It's quicker to fail than mypy.

.pre-commit-config.yaml

index 4b53e7261f0066ac58e65861306ffb44d45973be..86fc7b378e5f6bc8f0434feb7c7bc9c9f540da75 100644 (file)
 repos:
   - repo: local
     hooks:
+      - id: isort
+        name: isort
+        language: system
+        entry: isort --diff --color --check
+        files: \.(py[i]?|pxd|pyx)$
+
       - id: black
         name: black
         language: system
@@ -32,9 +38,3 @@ repos:
         language: system
         entry: mypy --pretty --follow-imports=silent
         files: \.py[i]?$
-
-      - id: isort
-        name: isort
-        language: system
-        entry: isort --diff --color --check
-        files: \.(py[i]?|pxd|pyx)$