diff --git a/backend/.woodpecker/.lint.yaml b/backend/.woodpecker/.lint.yaml index 79896f1..a59fcdb 100644 --- a/backend/.woodpecker/.lint.yaml +++ b/backend/.woodpecker/.lint.yaml @@ -7,24 +7,28 @@ steps: - name: prepare image: python:3.12-alpine commands: | + python3 -m venv local + source ./local/bin/activate + export PATH="./local/bin:${PATH}" + cd ./local wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest + pip install poetry + poetry install --only=linters --no-root - name: ruff image: python:3.12-alpine failure: ignore secrets: ["reviewdog_gitea_api_token", "gitea_address"] commands: | - pip install poetry + export PATH="./local/bin:${PATH}" 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 + poetry run ruff --output-format sarif . | 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: | - pip install poetry + export PATH="./local/bin:${PATH}" cd backend - poetry install --only=linters --no-root - poetry run mypy --no-incremental . | ../bin/reviewdog -f mypy -reporter gitea-pr-review -filter-mode nofilter + poetry run mypy --no-incremental . | reviewdog -f mypy -reporter gitea-pr-review -filter-mode nofilter