From 94d87c1c0ec4d4f6d134e29d8aab2b046db5a91e Mon Sep 17 00:00:00 2001 From: Adrien Date: Wed, 14 Feb 2024 23:24:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20invalid=20running=20direct?= =?UTF-8?q?ory=20(part=202)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.woodpecker/.lint.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/.woodpecker/.lint.yaml b/backend/.woodpecker/.lint.yaml index 93be03a..bda9507 100644 --- a/backend/.woodpecker/.lint.yaml +++ b/backend/.woodpecker/.lint.yaml @@ -7,10 +7,9 @@ steps: - name: prepare image: python:3.12-alpine commands: | + cd ./backend python3 -m venv local - cd ./local - wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest - cd - + wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest -b ./local/bin/ source ./local/bin/activate pip install poetry poetry install --only=linters --no-root @@ -20,11 +19,13 @@ steps: failure: ignore secrets: ["reviewdog_gitea_api_token", "gitea_address"] commands: | - poetry run ruff --output-format sarif backend | ./local/bin/reviewdog -f sarif -reporter gitea-pr-review -filter-mode nofilter + cd ./backend + poetry run ruff --output-format sarif . | ./local/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 backend | ./local/bin/reviewdog -f mypy -reporter gitea-pr-review -filter-mode nofilter + cd ./backend + poetry run mypy --no-incremental . | ./local/bin/reviewdog -f mypy -reporter gitea-pr-review -filter-mode nofilter