🐛 Fix invalid running directory (part 2)
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful

This commit is contained in:
2024-02-14 23:24:16 +01:00
parent 71f7519b2f
commit 94d87c1c0e

View File

@@ -7,10 +7,9 @@ steps:
- name: prepare - name: prepare
image: python:3.12-alpine image: python:3.12-alpine
commands: | commands: |
cd ./backend
python3 -m venv local python3 -m venv local
cd ./local wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest -b ./local/bin/
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
cd -
source ./local/bin/activate source ./local/bin/activate
pip install poetry pip install poetry
poetry install --only=linters --no-root poetry install --only=linters --no-root
@@ -20,11 +19,13 @@ steps:
failure: ignore failure: ignore
secrets: ["reviewdog_gitea_api_token", "gitea_address"] secrets: ["reviewdog_gitea_api_token", "gitea_address"]
commands: | 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 - name: mypy
image: python:3.12-alpine image: python:3.12-alpine
failure: ignore failure: ignore
secrets: ["reviewdog_gitea_api_token", "gitea_address"] secrets: ["reviewdog_gitea_api_token", "gitea_address"]
commands: | 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