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
|
interruptible: true
|
||||||
needs: []
|
needs: []
|
||||||
|
|
||||||
isort linting:
|
linting:
|
||||||
extends: .pip cache template
|
extends: .pip cache template
|
||||||
image: python:3.10-alpine
|
image: python:3.10-alpine
|
||||||
stage: quality
|
stage: quality
|
||||||
script:
|
script:
|
||||||
- isort -c --df .
|
- 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 .
|
- 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 .
|
- black --check --diff .
|
||||||
cache:
|
cache:
|
||||||
policy: pull
|
policy: pull
|
||||||
|
@ -100,9 +76,5 @@ tests:
|
||||||
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\.\d+\%)$/'
|
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\.\d+\%)$/'
|
||||||
interruptible: true
|
interruptible: true
|
||||||
needs:
|
needs:
|
||||||
- job: isort linting
|
- job: linting
|
||||||
artifacts: false
|
|
||||||
- job: flake8 linting
|
|
||||||
artifacts: false
|
|
||||||
- job: black linting
|
|
||||||
artifacts: false
|
artifacts: false
|
||||||
|
|
Loading…
Reference in a new issue