add yapf diff check to ci

This commit is contained in:
Robert Kaussow 2020-12-30 15:42:34 +01:00
parent 1d4200548c
commit 61dd211ed8
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 24 additions and 1 deletions

View File

@ -25,6 +25,19 @@ local PipelineLint = {
arch: 'amd64', arch: 'amd64',
}, },
steps: [ steps: [
{
name: 'yapf',
image: 'python:3.9',
environment: {
PY_COLORS: 1,
},
commands: [
'git fetch -tq',
'pip install poetry poetry-dynamic-versioning -qq',
'poetry install -q',
'poetry run yapf -dr ./dockertidy',
],
},
{ {
name: 'flake8', name: 'flake8',
image: 'python:3.9', image: 'python:3.9',

View File

@ -7,6 +7,16 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: yapf
image: python:3.9
commands:
- git fetch -tq
- pip install poetry poetry-dynamic-versioning -qq
- poetry install -q
- poetry run yapf -dr ./dockertidy
environment:
PY_COLORS: 1
- name: flake8 - name: flake8
image: python:3.9 image: python:3.9
commands: commands:
@ -664,6 +674,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 951a750ab414f65ebb0985f3d93ee20f8ebc5e70505d0e918062560630271b42 hmac: 63ae695973cbf7b43322468ffe5c50061ff6649cc3b2d8e64e2903bbca1468e9
... ...