add yapf diff check to ci

This commit is contained in:
Robert Kaussow 2020-12-30 15:44:56 +01:00
parent 0a0fdb7c81
commit 6110d9cafd
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',
},
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',
image: 'python:3.9',

View File

@ -7,6 +7,16 @@ platform:
arch: amd64
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
image: python:3.9
commands:
@ -666,6 +676,6 @@ depends_on:
---
kind: signature
hmac: 7b690a1d28ea6dbd7917de386e4bca384e1f7f4a776b4f3d46e53a89dedf5e8c
hmac: 7cc52c7f4b527cdcc18a460dac532cc3a207a09f75a6bdd92a114492b002dffb
...