add --show-diff-on-failure to pre-commit (#30097)

This makes the traceback on a failing CI pipeline much more useful.
This commit is contained in:
Bas Nijholt 2019-12-20 22:00:31 +01:00 committed by Paulus Schoutsen
parent 4ef04840e9
commit de94afd090

View File

@ -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'