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:26:31 +02:00
parent 0aef49801f
commit e0431ad430
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',
'[ ! -z "$(find . -type f -name *.py)" ] && yapf -rd ./',
'[ -z "$(find . -type f -name *.py)" ] || (yapf -rd ./)',
],
},
{

View File

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