diff options
author | 2020-03-02 19:33:13 -0800 | |
---|---|---|
committer | 2020-03-03 19:46:26 -0800 | |
commit | f5b5298bbe77c52ae0d8b01b3c44fc22cdce35c3 (patch) | |
tree | 177ff06cb986547b7489fe926db58237622b1d73 | |
parent | Use pre-commit in pipenv lint script (diff) |
CI: add a restore key for the pre-commit cache
A cache for an outdated pre-commit environment may still be useful. It
may be the case that only some hooks need to be updated rather than
all.
-rw-r--r-- | azure-pipelines.yml | 4 |
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 |