See #297: flake8 CI job

This commit is contained in:
Eliot Berriot 2018-06-09 17:12:58 +02:00
commit 2b1c46317f
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27

View file

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