From cd9a8e313d1db7148dff7d8e5a05931848a74ad5 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 31 Dec 2020 14:17:21 +0100 Subject: [PATCH] add yapf diff check to ci --- .drone.jsonnet | 13 +++++++++++++ .drone.yml | 12 +++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 9d60ff8..e3259c7 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -23,6 +23,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', diff --git a/.drone.yml b/.drone.yml index b3490b6..ce5ea13 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: @@ -637,6 +647,6 @@ depends_on: --- kind: signature -hmac: 74c4b106f9bf16bad7f23f5861535a07981040cba94d32b02464165bc8c55941 +hmac: f9166bc34b83e57f326f79a73ae23f3d63d727bbf96bf4e9e97a35a68475ad96 ...