2023-07-29 02:10:30 +02:00
|
|
|
pipeline:
|
2023-07-29 06:14:27 +02:00
|
|
|
lint:
|
2023-07-29 02:10:30 +02:00
|
|
|
image: fnndsc/python-poetry
|
|
|
|
commands:
|
2023-07-29 06:14:27 +02:00
|
|
|
- poetry add pylint flake8
|
2023-07-29 02:10:30 +02:00
|
|
|
- poetry install
|
2023-07-29 06:01:30 +02:00
|
|
|
- find ./app -not -path "./app/orgpython/*" -type f -name "*.py" | xargs poetry run pylint --exit-zero --disable=E0401,W0511
|
2023-07-29 02:10:30 +02:00
|
|
|
- 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
|