Skip to content
Snippets Groups Projects
.gitlab-ci.yml 748 B
Newer Older
Luca's avatar
Luca committed
---
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

black:
  stage: linting
  image: python:3
  before_script:
    - pip3 install -U pip pretix black
Luca's avatar
Luca committed
  script:
    - black --check .

isort:
  stage: linting
  image: python:3
  before_script:
    - pip3 install -U pip pretix isort
Luca's avatar
Luca committed
  script:
    - isort -c .

flake8:
  stage: linting
  image: python:3
  before_script:
    - pip3 install -U pip pretix flake8
Luca's avatar
Luca committed
  script:
    - flake8 .

check-manifest:
  stage: linting
  image: python:3
  before_script:
    - pip3 install -U pip pretix check-manifest
  script:
    - check-manifest .