From 660e8e418af1331ca440946ae7d1618b1a05e8a7 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 18 Jan 2022 18:08:24 +0100 Subject: [PATCH 1/4] Add woodpecker file --- .woodpecker.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..7be3b05 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,22 @@ +pipeline: + before_script: + image: python:3.9 + commands: + - pip install poetry + - poetry config virtualenvs.create false + - poetry install + + unit_tests: + image: python:3.9 + commands: + - poetry run pytest + + code_lint: + image: python:3.9 + commands: + - poetry run black . + + static_analysis: + image: python:3.9 + commands: + - poetry run mypy . From 8ac781a3361b18e5feb729b0ddfaadd13f6457f0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 18 Jan 2022 18:11:31 +0100 Subject: [PATCH 2/4] Update woodpecker --- .woodpecker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7be3b05..8e745ff 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,14 +9,14 @@ pipeline: unit_tests: image: python:3.9 commands: - - poetry run pytest + - pytest code_lint: image: python:3.9 commands: - - poetry run black . + - black . static_analysis: image: python:3.9 commands: - - poetry run mypy . + - mypy . From 07b699fcff41385ff7511bc99cdf799a6b591ef8 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 18 Jan 2022 18:32:06 +0100 Subject: [PATCH 3/4] Update woodpecker --- .woodpecker.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8e745ff..337cd7d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,22 +1,21 @@ pipeline: - before_script: - image: python:3.9 + unit_tests: + image: mquade/poetry:3.9-1.1.11 commands: - - pip install poetry - poetry config virtualenvs.create false - poetry install - - unit_tests: - image: python:3.9 - commands: - pytest code_lint: - image: python:3.9 + image: mquade/poetry:3.9-1.1.11 commands: + - poetry config virtualenvs.create false + - poetry install - black . static_analysis: - image: python:3.9 + image: mquade/poetry:3.9-1.1.11 commands: + - poetry config virtualenvs.create false + - poetry install - mypy . From 462068f228a5ef35603aaf4ac02529b224e0f493 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 18 Jan 2022 18:34:48 +0100 Subject: [PATCH 4/4] Update woodpecker --- .woodpecker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 337cd7d..dc9be07 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,6 +11,7 @@ pipeline: commands: - poetry config virtualenvs.create false - poetry install + - pip install black - black . static_analysis: @@ -18,4 +19,5 @@ pipeline: commands: - poetry config virtualenvs.create false - poetry install + - pip install mypy - mypy .