🐛 Install poetry for each step
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user