diff options
author | Jan Willhaus <mail@janwillhaus.de> | 2019-05-19 18:46:17 +0200 |
---|---|---|
committer | Jan Willhaus <mail@janwillhaus.de> | 2019-11-02 16:16:13 +0100 |
commit | 1320a5220c765b67855b60c60a8ec3acc21f787c (patch) | |
tree | 4cb27d3e6094ad2291e50ee640ec55c239e0197c /.travis.yml | |
parent | 2274933a3b5d4fece228c09e756e992883d26e6a (diff) | |
download | warlock-1320a5220c765b67855b60c60a8ec3acc21f787c.tar.gz |
Add pre-commit framework config, use in linting CI stage
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 3e8aca4..68ef451 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,12 @@ jobs: python: 3.7 dist: xenial install: - - pip install -U black flake8 flake8-bugbear flake8-todo + - pip install -U pre-commit script: - - black --check --verbose . - - flake8 warlock + - pre-commit run --all-files --verbose + env: + - PRE_COMMIT_HOME="$HOME/.cache/pre-commit" + cache: + pip: true + directories: + - "$PRE_COMMIT_HOME" |