2020-06-26 19:08:22 +02:00
|
|
|
image: "python:3.7"
|
|
|
|
|
|
|
|
# setup environemnt
|
|
|
|
before_script:
|
|
|
|
- python --version
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pip install flake8
|
|
|
|
|
|
|
|
stages:
|
2020-06-26 23:05:21 +02:00
|
|
|
- check
|
2020-06-26 19:08:22 +02:00
|
|
|
|
|
|
|
flake8:
|
2020-06-26 23:05:21 +02:00
|
|
|
stage: check
|
2020-06-26 19:08:22 +02:00
|
|
|
script:
|
2020-06-26 23:05:21 +02:00
|
|
|
# breaking errors and syntax errors
|
|
|
|
- flake8 --select=E9,F63,F7,F82 --show-source
|
|
|
|
# pep8 warnings
|
|
|
|
- flake8 --max-complexity=10 --max-line-length=120 --show-source
|