fix ci yapf command if no python files found
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b151ed86b7
commit
eb58c8e7bf
|
@ -21,7 +21,7 @@ local PipelineLinting = {
|
||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
'pip install -qq yapf',
|
'pip install -qq yapf',
|
||||||
'[ ! -z "$(find . -type f -name *.py)" ] && yapf -rd ./',
|
'[ -z "$(find . -type f -name *.py)" ] || (yapf -rd ./)',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ steps:
|
||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install -qq yapf
|
- pip install -qq yapf
|
||||||
- "[ ! -z \"$(find . -type f -name *.py)\" ] && yapf -rd ./"
|
- "[ -z \"$(find . -type f -name *.py)\" ] || (yapf -rd ./)"
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
|
|
||||||
|
@ -147,6 +147,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 60890dd7f67868cbef4b408923a4018b207035a701d7971240815884283c9048
|
hmac: 58748de513d0ee56c6ee69bb3b8f3686e8022c841728b83ce7e0a0c97e884bf0
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue