mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
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:
parent
4ef04840e9
commit
de94afd090
@ -54,7 +54,7 @@ stages:
|
|||||||
displayName: 'Run bandit'
|
displayName: 'Run bandit'
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run isort --all-files
|
pre-commit run isort --all-files --show-diff-on-failure
|
||||||
displayName: 'Run isort'
|
displayName: 'Run isort'
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
@ -97,7 +97,7 @@ stages:
|
|||||||
pre-commit install-hooks --config .pre-commit-config-all.yaml
|
pre-commit install-hooks --config .pre-commit-config-all.yaml
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run black --all-files
|
pre-commit run black --all-files --show-diff-on-failure
|
||||||
displayName: 'Check Black formatting'
|
displayName: 'Check Black formatting'
|
||||||
|
|
||||||
- stage: 'Tests'
|
- stage: 'Tests'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user