aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--azure-pipelines.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 902bfcd56..fa85e6045 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -32,7 +32,9 @@ jobs:
- task: Cache@2
displayName: 'Restore pre-commit environment'
inputs:
- key: pre-commit | .pre-commit-config.yaml | "$(PythonVersion.pythonLocation)"
+ key: pre-commit | "$(PythonVersion.pythonLocation)" | .pre-commit-config.yaml
+ restoreKeys: |
+ pre-commit | "$(PythonVersion.pythonLocation)"
path: $(PRE_COMMIT_HOME)
- script: pre-commit run --all-files --show-diff-on-failure