1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-11-23 00:50:48 +00:00

Merge pull request #11 from cisagov/improvement/use_travisci_caching

Use TravisCI caching to speed up builds
This commit is contained in:
Shane Frasier 2019-05-26 15:06:22 -04:00 committed by GitHub
commit a0bd7047f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 6 deletions

View file

@ -1,7 +1,7 @@
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.1 rev: v2.2.3
hooks: hooks:
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-json - id: check-json
@ -23,7 +23,7 @@ repos:
- id: requirements-txt-fixer - id: requirements-txt-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/igorshubovych/markdownlint-cli - repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.15.0 rev: v0.16.0
hooks: hooks:
- id: markdownlint - id: markdownlint
# The LICENSE.md must match the license text exactly for # The LICENSE.md must match the license text exactly for
@ -35,7 +35,7 @@ repos:
hooks: hooks:
- id: yamllint - id: yamllint
- repo: https://github.com/detailyang/pre-commit-shell - repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.4 rev: 1.0.5
hooks: hooks:
- id: shell-lint - id: shell-lint
- repo: https://gitlab.com/pycqa/flake8 - repo: https://gitlab.com/pycqa/flake8
@ -45,11 +45,11 @@ repos:
additional_dependencies: additional_dependencies:
- flake8-docstrings - flake8-docstrings
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v1.16.3 rev: v1.17.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: 2a1dbab rev: 1.6.0
hooks: hooks:
- id: bandit - id: bandit
args: args:
@ -74,6 +74,6 @@ repos:
hooks: hooks:
- id: docker-compose-check - id: docker-compose-check
- repo: https://github.com/prettier/prettier - repo: https://github.com/prettier/prettier
rev: 1.17.0 rev: 1.17.1
hooks: hooks:
- id: prettier - id: prettier

View file

@ -2,8 +2,15 @@
dist: xenial dist: xenial
language: python language: python
python: 3.7 python: 3.7
# pre-commit hooks can use Docker, so we should go ahead and enable it
services: docker services: docker
# Cache pip packages and pre-commit plugins to speed up builds
cache:
pip: true
directories:
- $HOME/.cache/pre-commit
install: install:
- pip install --upgrade -r requirements-test.txt - pip install --upgrade -r requirements-test.txt
script: script: