Files
carrramba-encore-rate/backend/.woodpecker/.lint.yaml
Adrien 825a852c67
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
🚧 Fix reviewdog path
2024-02-11 19:34:51 +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: |
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
- name: mypy
image: python:3.12-alpine
failure: ignore
secrets: ["reviewdog_gitea_api_token", "gitea_address"]
commands: |
cd backend
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
pip install mypy
mypy . | ./bin/reviewdog -f mypy -reporter gitea-pr-review