From 28b0801e826e060db8e6cdd331243bf2bdfaa961 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 29 Dec 2024 19:56:02 +0100 Subject: [PATCH] Print diff for ruff-format if check fails It's a bit hard for contributors to figure out what ruff-format is unhappy about if all they get is a return status of non zero. Enable printing a diff with suggested changes with the pre-commit hook. Signed-off-by: Ralph Sennhauser --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cafa5907a0..293064f320 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: exclude: ^source/tools/webservices/ - id: ruff-format args: - - --check + - --diff exclude: ^source/tools/webservices/ - repo: local hooks: