ci: add python file checks to ci

This commit is contained in:
Robert Kaussow 2021-06-07 22:35:18 +02:00
parent c93328aba2
commit cef0783414
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 22 additions and 0 deletions

View File

@ -13,6 +13,28 @@ local PipelineLinting = {
'ansible-later',
],
},
{
name: 'python-format',
image: 'python:3.9',
environment: {
PY_COLORS: 1,
},
commands: [
'pip install -qq yapf',
'yapf -dr ./',
],
},
{
name: 'python-flake8',
image: 'python:3.9',
environment: {
PY_COLORS: 1,
},
commands: [
'pip install -qq flake8',
'flake8',
],
},
],
trigger: {
ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'],