From 5862bff044bfe92f15baa4f89e8dd421b76948d8 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Fri, 17 Jan 2025 09:40:15 +0100 Subject: [PATCH] ci: show pre-commit diff on failure Sometimes the change done by pre-commit are not obvious, this should help. --- .gitlab-ci/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/lint.yml b/.gitlab-ci/lint.yml index cf81c5517..3dc0e46c0 100644 --- a/.gitlab-ci/lint.yml +++ b/.gitlab-ci/lint.yml @@ -7,7 +7,7 @@ pre-commit: variables: PRE_COMMIT_HOME: /pre-commit-cache script: - - pre-commit run --all-files + - pre-commit run --all-files --show-diff-on-failure cache: key: pre-commit-all paths: