mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-25 06:10:43 +00:00
add yapf diff check to ci
This commit is contained in:
parent
559cc5bef7
commit
cd9a8e313d
@ -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',
|
||||
|
12
.drone.yml
12
.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
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user