🚧 Format reviewdog command and use temp file
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:
@@ -12,7 +12,10 @@ steps:
|
||||
env
|
||||
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
|
||||
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
|
||||
image: python:3.12-alpine
|
||||
@@ -21,4 +24,5 @@ steps:
|
||||
commands: |
|
||||
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 -tee
|
||||
cd backend
|
||||
mypy . | ./bin/reviewdog -f mypy -reporter gitea-pr-review
|
||||
|
Reference in New Issue
Block a user