🚧 Format reviewdog command and use temp file
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful

This commit is contained in:
2024-02-11 19:31:47 +01:00
parent 63abb677cb
commit 812d7c0a61

View File

@@ -12,7 +12,10 @@ steps:
env env
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
pip install ruff pip install ruff
ruff --output-format sarif . | ./bin/reviewdog -f=sarif -reporter=gitea-pr-review -tee 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 - name: mypy
image: python:3.12-alpine image: python:3.12-alpine
@@ -21,4 +24,5 @@ steps:
commands: | commands: |
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
pip install mypy pip install mypy
mypy . | ./bin/reviewdog -f=mypy -reporter=gitea-pr-review -tee cd backend
mypy . | ./bin/reviewdog -f mypy -reporter gitea-pr-review