Files
carrramba-encore-rate/backend/.woodpecker/.lint.yaml
Adrien 812d7c0a61
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
🚧 Format reviewdog command and use temp file
2024-02-11 19:31:47 +01:00

29 lines
887 B
YAML

when:
- event: pull_request
branch:
exclude: [master, release/*]
steps:
- name: ruff
image: python:3.12-alpine
failure: ignore
secrets: ["reviewdog_gitea_api_token", "gitea_address"]
commands: |
env
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
pip install ruff
cd backend
ruff --output-format sarif . > /tmp/ruff.log
cat /tmp/ruff.log
cat /tmp/ruff.log | ./bin/reviewdog -f sarif -reporter gitea-pr-review
- name: mypy
image: python:3.12-alpine
failure: ignore
secrets: ["reviewdog_gitea_api_token", "gitea_address"]
commands: |
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
pip install mypy
cd backend
mypy . | ./bin/reviewdog -f mypy -reporter gitea-pr-review