.gitlab-ci.yml 351 Bytes
Newer Older
Bo-Chun Chen's avatar
Bo-Chun Chen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: "python:3.7"

before_script:
  - python --version
  - pip install flake8
  - pip install pylint

stages:
  - lint

flake8:
  tags:
    - lint
  stage: lint
  script:
    - flake8 --exclude=tests.py --max-line-length=120 *.py app

pylint:
  tags:
    - lint
  stage: lint
  script:
    - pylint --ignore=tests.py --max-line-length=120 *.py app