X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/4bf9501a14f86845865244ee3ffb03a34707d36c..0e92df5527997b13464edfd4d8041f1ce8a41cbb:/.travis.yml diff --git a/.travis.yml b/.travis.yml index 3ced9e0..83b41c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,6 +62,20 @@ jobs: - pre-commit run --all-files --verbose - pre-commit run --hook-stage manual --verbose commitlint-travis + # Run `pre-commit` linters in a single job + - language: 'python' + env: 'Lint_pre-commit' + name: 'Lint: pre-commit' + before_install: 'skip' + cache: + directories: + - $HOME/.cache/pre-commit + script: + # Install and run `pre-commit` + - pip install pre-commit==2.7.1 + - pre-commit run --all-files --color always --verbose + - pre-commit run --color always --hook-stage manual --verbose commitlint-travis + ## Define the rest of the matrix based on Kitchen testing # Make sure the instances listed below match up with # the `platforms` defined in `kitchen.yml`