From: Daniele Varrazzo Date: Thu, 13 Feb 2025 12:57:40 +0000 (+0100) Subject: chore: tweak linters output in pre-commit X-Git-Tag: 3.2.5~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1dec7999d514fc48fd672d55b1ad149323c4fe9;p=thirdparty%2Fpsycopg.git chore: tweak linters output in pre-commit --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c27ef8ab..4b53e7261 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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)$ diff --git a/psycopg/setup.cfg b/psycopg/setup.cfg index c4a645f29..cd3f97b84 100644 --- a/psycopg/setup.cfg +++ b/psycopg/setup.cfg @@ -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