Skip to content

Commit

Permalink
add --show-diff-on-failure to pre-commit (home-assistant#30097)
Browse files Browse the repository at this point in the history
This makes the traceback on a failing CI pipeline much more useful.
  • Loading branch information
basnijholt authored and balloob committed Dec 20, 2019
1 parent 4ef0484 commit de94afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit de94afd

Please sign in to comment.