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
cccbdda3dc
commit
6eda2a3035
@ -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: e07a7f0edb5c259c1b17f33b40d353c57cf932cbf933f2033f634f79aa82ad80
|
hmac: 9986a39347925db27a9bc2ae5b322badc490a73e099e3580db08e0d4b112da10
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user