From ebddc6afec02716eec2cb6a2b5e8b8cfede6536f Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sat, 29 Jul 2023 08:10:30 +0800 Subject: [PATCH] [cicd] add lint workflow --- .woodpecker/lint.yml | 14 ++++++++++++++ .woodpecker.yml => .woodpecker/test.yml | 0 2 files changed, 14 insertions(+) create mode 100644 .woodpecker/lint.yml rename .woodpecker.yml => .woodpecker/test.yml (100%) diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..bca4400 --- /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,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 diff --git a/.woodpecker.yml b/.woodpecker/test.yml similarity index 100% rename from .woodpecker.yml rename to .woodpecker/test.yml