-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
50 lines (41 loc) · 918 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
image: "python:3.7"
stages:
- static_analysis
include:
- template: Code-Quality.gitlab-ci.yml
code_quality:
stage: static_analysis
before_script: []
artifacts:
paths: [gl-code-quality-report.json]
before_script:
- python --version
- pip install flake8
- pip install mypy
- pip install pylint
- pip install black
- pip install isort
- pip install -r requirements.txt
flake8:
stage: static_analysis
script:
- python -m flake8 --max-line-length 88 pi_jukebox/*.py
mypy:
stage: static_analysis
script:
- pwd
- ls -l
- python -m mypy pi_jukebox/*.py
pylint:
stage: static_analysis
allow_failure: true
script:
- python -m pylint -d C0301 pi_jukebox/*.py
black:
stage: static_analysis
script:
- python -m black --check pi_jukebox/*.py
isort:
stage: static_analysis
script:
- python -m isort --profile black --check-only pi_jukebox/*.py