See #297: flake8 CI job

This commit is contained in:
Eliot Berriot 2018-06-09 17:12:58 +02:00
parent 630ab896a5
commit 2b1c46317f
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 10 additions and 1 deletions

View File

@ -22,8 +22,17 @@ black:
script: script:
- black --check api/ - black --check api/
flake8:
image: python:3.6
stage: lint
variables:
GIT_STRATEGY: fetch
before_script:
- pip install flake8
script:
- flake8 api
cache: cache:
key: "$CI_PROJECT_ID__black_pip_cache" key: "$CI_PROJECT_ID__flake8_pip_cache"
paths: paths:
- "$PIP_CACHE_DIR" - "$PIP_CACHE_DIR"