Skip to content
Snippets Groups Projects
Commit ae32d339 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Update gitlab-ci.yml

parent 863f7110
No related branches found
No related tags found
1 merge request!28Update gitlab CI
image: "python:3.7"
image: "python:3.6"
# 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/pip
- venv/
before_script:
- python --version
- pip install pylint
- python3 -m venv venv
- source venv/bin/activate
- pip install black==22.3.0 flake8==4.0.1
stages:
- lint
linting:
black:
tags:
- lint
stage: lint
script:
- black --check --diff .
flake8:
tags:
- lint
stage: lint
script:
- pylint --ignore=tests.py --max-line-length=120 *.py app
- flake8 .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment