merge linting jobs
This commit is contained in:
parent
89c82f70a7
commit
3841c3011f
1 changed files with 2 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue