File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # https://docs.astral.sh/ruff
21name : ci
32on :
43 push :
54 pull_request :
65 branches : [main]
76 workflow_dispatch :
87permissions :
9- contents : write
8+ contents : read
109jobs :
1110 codespell :
1211 runs-on : ubuntu-latest
1817 steps :
1918 - uses : actions/checkout@v6
2019 - run : pipx run ruff check --output-format=github
21- ruff_format :
22- runs-on : ubuntu-latest
23- steps :
24- - uses : actions/checkout@v6
25- - name : Format with Ruff
26- run : pipx run ruff format .
27- - name : Commit formatting fixes
28- run : |
29- git config user.name "GitHub Actions"
30- git config user.email "actions@github.com"
31- if git diff --quiet; then
32- echo "✅ No formatting changes needed"
33- exit 0
34- fi
35- git add -A
36- git commit -m "style: apply ruff formatting [skip ci]"
37- for i in 1 2 3; do
38- git pull --rebase origin main && git push && break
39- echo "⚠️ Push failed, retrying ($i/3)..."
40- sleep 5
41- done
You can’t perform that action at this time.
0 commit comments