🚧 Install dependencies before running the linters
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful

This commit is contained in:
2024-02-11 19:46:12 +01:00
parent 825a852c67
commit 63cdbcb46e
2 changed files with 20 additions and 16 deletions

View File

@@ -10,12 +10,10 @@ steps:
secrets: ["reviewdog_gitea_api_token", "gitea_address"]
commands: |
cd backend
env
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
pip install ruff
ruff --output-format sarif . > /tmp/ruff.log
cat /tmp/ruff.log
cat /tmp/ruff.log | ./bin/reviewdog -f sarif -reporter gitea-pr-review
pip install poetry
poetry install --with=linters
ruff --output-format sarif . | ./bin/reviewdog -f sarif -reporter gitea-pr-review
- name: mypy
image: python:3.12-alpine
@@ -24,5 +22,6 @@ steps:
commands: |
cd backend
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
pip install mypy
pip install poetry
poetry install --with=linters
mypy . | ./bin/reviewdog -f mypy -reporter gitea-pr-review