From 7014f9843733bc4d0f02edfb51311b4169d2613f Mon Sep 17 00:00:00 2001 From: Razvan-Liviu Varzaru Date: Thu, 21 Nov 2024 21:02:02 +0200 Subject: [PATCH] Run isort/black in check mode printing the diffs --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d760ccb..321b2b6f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -76,6 +76,7 @@ repos: hooks: - id: black name: check python formating (black) + args: ["--diff", "--check"] # - repo: https://github.com/asottile/pyupgrade # rev: v3.16.0 # hooks: @@ -87,7 +88,7 @@ repos: hooks: - id: isort name: check python imports order (isort) - args: ["--profile", "black", "--filter-files"] + args: ["--profile", "black", "--filter-files", "--diff", "--check-only"] - repo: local hooks: - id: docker-hadolint