]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: tweak linters output in pre-commit
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Feb 2025 12:57:40 +0000 (13:57 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 14 Feb 2025 17:52:10 +0000 (18:52 +0100)
.pre-commit-config.yaml
psycopg/setup.cfg

index 9c27ef8abdfaca457c0c8a53a316fa9db83fa4b9..4b53e7261f0066ac58e65861306ffb44d45973be 100644 (file)
@@ -13,7 +13,7 @@ repos:
       - id: black
         name: black
         language: system
-        entry: black --check --diff
+        entry: black --check --diff --color --quiet
         files: \.py[i]?$
 
       - id: codespell
@@ -36,5 +36,5 @@ repos:
       - id: isort
         name: isort
         language: system
-        entry: isort
+        entry: isort --diff --color --check
         files: \.(py[i]?|pxd|pyx)$
index c4a645f29b2bc1e72613efda6765dc5a9a6445ea..cd3f97b849a642a565a5bee132591f4942965f2d 100644 (file)
@@ -79,7 +79,7 @@ dev =
     codespell >= 2.2
     dnspython >= 2.1
     flake8 >= 4.0
-    isort >= 6.0
+    isort[colors] >= 6.0
     isort-psycopg
     mypy >= 1.14
     pre-commit >= 4.0.1