17 lines
364 B
YAML
17 lines
364 B
YAML
|
image: "python:3.7"
|
||
|
|
||
|
# setup environemnt
|
||
|
before_script:
|
||
|
- python --version
|
||
|
- pip install -r requirements.txt
|
||
|
- pip install flake8
|
||
|
|
||
|
stages:
|
||
|
- Static Analysis
|
||
|
|
||
|
flake8:
|
||
|
stage: Static Analysis
|
||
|
script:
|
||
|
- flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
|
||
|
- flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|