fix ci yapf command if no python files found
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2021-06-08 00:14:07 +02:00
parent e8d0ff32e9
commit d308fd3853
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ local PipelineLinting = {
},
commands: [
'pip install -qq yapf',
'yapf -dr ./',
'[ ! -z "$(find . -type f -name *.py)" ] && yapf -rd ./',
],
},
{

View File

@ -16,7 +16,7 @@ steps:
image: python:3.9
commands:
- pip install -qq yapf
- yapf -dr ./
- "[ ! -z \"$(find . -type f -name *.py)\" ] && yapf -rd ./"
environment:
PY_COLORS: 1
@ -147,6 +147,6 @@ depends_on:
---
kind: signature
hmac: f5e8b7070646e50bebbd57d451e03f1f5486dc14ab079e77105987d68523d399
hmac: 95b546265f800a83d10d1abbbeed4bd201aafc1e1ede3e64f7a41826fb86719d
...