We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b34b0c6 commit 88bfa06Copy full SHA for 88bfa06
.circleci/config.yml
@@ -40,6 +40,15 @@ jobs:
40
- image: 'cimg/python:3.10'
41
steps:
42
- checkout
43
+ # Recipe: https://pre-commit.com/#managing-ci-caches
44
+ - run:
45
+ name: Combine precommit config and python versions for caching
46
+ command: |
47
+ cp .pre-commit-config.yaml pre-commit-cache-key.txt
48
+ python --version --version >> pre-commit-cache-key.txt
49
+ - restore_cache:
50
+ keys:
51
+ - v1-pc-cache-{{ checksum "pre-commit-cache-key.txt" }}
52
- run: git submodule sync
53
- run: git submodule update --init
54
- run: pip install --user 'tox<5'
@@ -49,6 +58,10 @@ jobs:
58
node-version: '10.17.0'
59
- run: npm ci
60
- run: tox -e eslint
61
+ - save_cache:
62
+ key: v1-pc-cache-{{ checksum "pre-commit-cache-key.txt" }}
63
+ paths:
64
+ - ~/.cache/pre-commit
65
66
workflows:
67
version: 2
0 commit comments