From d4d24d13d218767bb711632308cc8855b585c9f6 Mon Sep 17 00:00:00 2001 From: Adrien Date: Tue, 13 Feb 2024 23:39:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Install=20poetry=20for=20each=20?= =?UTF-8?q?step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.woodpecker/.lint.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/backend/.woodpecker/.lint.yaml b/backend/.woodpecker/.lint.yaml index 954af8c..79896f1 100644 --- a/backend/.woodpecker/.lint.yaml +++ b/backend/.woodpecker/.lint.yaml @@ -7,22 +7,24 @@ steps: - name: prepare image: python:3.12-alpine commands: | - echo "Prepare linters environment" wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest - pip install poetry - cd backend - poetry install --only=linters --no-root - name: ruff image: python:3.12-alpine failure: ignore secrets: ["reviewdog_gitea_api_token", "gitea_address"] commands: | - poetry run ruff --output-format sarif . | ./bin/reviewdog -f sarif -reporter gitea-pr-review -filter-mode nofilter + pip install poetry + cd backend + poetry install --only=linters --no-root + poetry run ruff --output-format sarif . | ../bin/reviewdog -f sarif -reporter gitea-pr-review -filter-mode nofilter - name: mypy image: python:3.12-alpine failure: ignore secrets: ["reviewdog_gitea_api_token", "gitea_address"] commands: | - poetry run mypy --no-incremental . | ./bin/reviewdog -f mypy -reporter gitea-pr-review -filter-mode nofilter + pip install poetry + cd backend + poetry install --only=linters --no-root + poetry run mypy --no-incremental . | ../bin/reviewdog -f mypy -reporter gitea-pr-review -filter-mode nofilter