diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 4421bc3..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,10 +0,0 @@ -pipeline: - test: - image: fnndsc/python-poetry - commands: - - poetry install - - poetry run pytest -vvv - pylint: - image: cytopia/pylint - commands: - - find . -type f -name "*.py" | xargs pylint --disable=E0401 diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..0507c32 --- /dev/null +++ b/.woodpecker/lint.yml @@ -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 + 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 diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..f98d60b --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,6 @@ +pipeline: + test: + image: fnndsc/python-poetry + commands: + - poetry install + - poetry run pytest -vvv