[cicd] merge pylint and flake8 to single step
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
SouthFox 2023-07-29 12:14:27 +08:00
parent b59dc4c227
commit 7c73557316

View file

@ -1,14 +1,9 @@
pipeline:
pylint:
lint:
image: fnndsc/python-poetry
commands:
- poetry add pylint
- poetry add pylint flake8
- poetry install
- find ./app -not -path "./app/orgpython/*" -type f -name "*.py" | xargs poetry run pylint --exit-zero --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