From de94afd09094caaf413cb1af69ca53ec61d393a8 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Fri, 20 Dec 2019 22:00:31 +0100 Subject: [PATCH] add --show-diff-on-failure to pre-commit (#30097) This makes the traceback on a failing CI pipeline much more useful. --- azure-pipelines-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index 78de90c8552..546b63950fe 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -54,7 +54,7 @@ stages: displayName: 'Run bandit' - script: | . venv/bin/activate - pre-commit run isort --all-files + pre-commit run isort --all-files --show-diff-on-failure displayName: 'Run isort' - script: | . venv/bin/activate @@ -97,7 +97,7 @@ stages: pre-commit install-hooks --config .pre-commit-config-all.yaml - script: | . venv/bin/activate - pre-commit run black --all-files + pre-commit run black --all-files --show-diff-on-failure displayName: 'Check Black formatting' - stage: 'Tests'