From a1dec7999d514fc48fd672d55b1ad149323c4fe9 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 13 Feb 2025 13:57:40 +0100 Subject: [PATCH] chore: tweak linters output in pre-commit --- .pre-commit-config.yaml | 4 ++-- psycopg/setup.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2