add yapf diff check to ci

This commit is contained in:
Robert Kaussow 2020-12-31 14:17:21 +01:00
parent 559cc5bef7
commit cd9a8e313d
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 24 additions and 1 deletions

View File

@ -23,6 +23,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 ./ansiblelater',
],
},
{ {
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 ./ansiblelater
environment:
PY_COLORS: 1
- name: flake8 - name: flake8
image: python:3.9 image: python:3.9
commands: commands:
@ -637,6 +647,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 74c4b106f9bf16bad7f23f5861535a07981040cba94d32b02464165bc8c55941 hmac: f9166bc34b83e57f326f79a73ae23f3d63d727bbf96bf4e9e97a35a68475ad96
... ...