[cicd] add lint workflow
This commit is contained in:
parent
882dc4971b
commit
ebddc6afec
2 changed files with 14 additions and 0 deletions
14
.woodpecker/lint.yml
Normal file
14
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
pipeline:
|
||||
pylint:
|
||||
image: fnndsc/python-poetry
|
||||
commands:
|
||||
- poetry add pylint
|
||||
- poetry install
|
||||
- find . -type f -name "*.py" | xargs poetry run pylint --disable=E0401,W0511
|
||||
flake8:
|
||||
image: fnndsc/python-poetry
|
||||
commands:
|
||||
- poetry add flake8
|
||||
- poetry install
|
||||
- poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
- poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
Loading…
Reference in a new issue