Skip to content

Commit a0bd704

Browse files
authored
Merge pull request #11 from cisagov/improvement/use_travisci_caching
Use TravisCI caching to speed up builds
2 parents 76999e2 + 4e9280e commit a0bd704

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v2.2.1
4+
rev: v2.2.3
55
hooks:
66
- id: check-executables-have-shebangs
77
- id: check-json
@@ -23,7 +23,7 @@ repos:
2323
- id: requirements-txt-fixer
2424
- id: trailing-whitespace
2525
- repo: https://github.com/igorshubovych/markdownlint-cli
26-
rev: v0.15.0
26+
rev: v0.16.0
2727
hooks:
2828
- id: markdownlint
2929
# The LICENSE.md must match the license text exactly for
@@ -35,7 +35,7 @@ repos:
3535
hooks:
3636
- id: yamllint
3737
- repo: https://github.com/detailyang/pre-commit-shell
38-
rev: 1.0.4
38+
rev: 1.0.5
3939
hooks:
4040
- id: shell-lint
4141
- repo: https://gitlab.com/pycqa/flake8
@@ -45,11 +45,11 @@ repos:
4545
additional_dependencies:
4646
- flake8-docstrings
4747
- repo: https://github.com/asottile/pyupgrade
48-
rev: v1.16.3
48+
rev: v1.17.1
4949
hooks:
5050
- id: pyupgrade
5151
- repo: https://github.com/PyCQA/bandit
52-
rev: 2a1dbab
52+
rev: 1.6.0
5353
hooks:
5454
- id: bandit
5555
args:
@@ -74,6 +74,6 @@ repos:
7474
hooks:
7575
- id: docker-compose-check
7676
- repo: https://github.com/prettier/prettier
77-
rev: 1.17.0
77+
rev: 1.17.1
7878
hooks:
7979
- id: prettier

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
dist: xenial
33
language: python
44
python: 3.7
5+
# pre-commit hooks can use Docker, so we should go ahead and enable it
56
services: docker
67

8+
# Cache pip packages and pre-commit plugins to speed up builds
9+
cache:
10+
pip: true
11+
directories:
12+
- $HOME/.cache/pre-commit
13+
714
install:
815
- pip install --upgrade -r requirements-test.txt
916
script:

0 commit comments

Comments
 (0)