File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,25 +31,26 @@ jobs:
3131 - name : Install ruff
3232 run : python -m pip install -q ruff
3333
34- - name : Capture ruff output
34+ - name : Apply safe ruff fixes and capture remaining output
3535 shell : bash
3636 run : |
3737 set +e
38+ ruff check . --fix
3839 mkdir -p diagnostics
3940 ruff check . > diagnostics/ruff.log 2>&1
4041 status=$?
4142 echo "OVERALL EXIT CODE: ${status}" >> diagnostics/ruff.log
4243 echo "${status}" > diagnostics/ruff.status
4344 exit 0
4445
45- - name : Commit diagnostic log
46+ - name : Commit fixes and diagnostic log
4647 run : |
4748 git config user.name "github-actions[bot]"
4849 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
49- git add diagnostics/ruff.log diagnostics/ruff.status
50+ git add src tests examples diagnostics/ruff.log diagnostics/ruff.status
5051 if git diff --cached --quiet; then
51- echo "Diagnostic output unchanged ."
52+ echo "No safe fixes or diagnostic changes ."
5253 else
53- git commit -m "Record ruff diagnostic output "
54+ git commit -m "Apply safe ruff fixes and record remaining findings "
5455 git push origin HEAD:claude/inference-comparison-4vlt4q
5556 fi
You can’t perform that action at this time.
0 commit comments