merge linting jobs

This commit is contained in:
HgO 2022-08-13 14:08:18 +02:00
parent 89c82f70a7
commit 3841c3011f

View file

@ -41,37 +41,13 @@ install:
interruptible: true
needs: []
isort linting:
linting:
extends: .pip cache template
image: python:3.10-alpine
stage: quality
script:
- isort -c --df .
cache:
policy: pull
interruptible: true
needs:
- job: install
artifacts: false
flake8 linting:
extends: .pip cache template
image: python:3.10-alpine
stage: quality
script:
- flake8 --count --show-source --statistics .
cache:
policy: pull
interruptible: true
needs:
- job: install
artifacts: false
black linting:
extends: .pip cache template
image: python:3.10-alpine
stage: quality
script:
- black --check --diff .
cache:
policy: pull
@ -100,9 +76,5 @@ tests:
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\.\d+\%)$/'
interruptible: true
needs:
- job: isort linting
artifacts: false
- job: flake8 linting
artifacts: false
- job: black linting
- job: linting
artifacts: false