Newer
Older
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
---
stages:
- linting
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache
docformatter:
stage: linting
image: python:3
before_script:
- pip3 install -U pip docformatter
script:
- docformatter --check -r .
black:
stage: linting
image: python:3
before_script:
- pip3 install -U pip black
script:
- black --check .
isort:
stage: linting
image: python:3
before_script:
- pip3 install -U pip isort
script:
- isort -c .
flake8:
stage: linting
image: python:3
before_script:
- pip3 install -U pip flake8
script:
- flake8 .