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
c417389ad9
commit
e9290c6c84
|
@ -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 ./)',
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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: bd12f6129e3c4112d4a2e835564fb0797cf42f30dd8193b3d7d5b50060dcf013
|
||||
hmac: fb8a00ac4a8d0a22e0b52a2f61f2ffe86188f1781e99c5cb17a28b137da179b6
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue