From: Daniele Varrazzo Date: Mon, 12 May 2025 15:13:57 +0000 (+0200) Subject: chore: run isort before other hooks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d9336d068e0f7aa24ad18e30d06509deb4c367;p=thirdparty%2Fpsycopg.git chore: run isort before other hooks It's quicker to fail than mypy. --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4b53e7261..86fc7b378 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,12 @@ 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)$