fix ci yapf command if no python files found
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d300a8f78a
commit
0c6d2cf2ad
@ -21,7 +21,7 @@ local PipelineLinting = {
|
|||||||
},
|
},
|
||||||
commands: [
|
commands: [
|
||||||
'pip install -qq yapf',
|
'pip install -qq yapf',
|
||||||
'yapf -dr ./',
|
'[ ! -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
|
||||||
- yapf -dr ./
|
- "[ ! -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: fbcbe4ac5eec8b4ab94576242eb79ee16528a217189ffb490ba79b2f573c755c
|
hmac: c736358bed7d7970ee3da3c9d81815bfbb1934b0d60f724a252bd10868baff76
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user