Skip to content

Commit 0a8e796

Browse files
authored
dropped ruff formatting
1 parent cf26b1f commit 0a8e796

1 file changed

Lines changed: 1 addition & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# https://docs.astral.sh/ruff
21
name: ci
32
on:
43
push:
54
pull_request:
65
branches: [main]
76
workflow_dispatch:
87
permissions:
9-
contents: write
8+
contents: read
109
jobs:
1110
codespell:
1211
runs-on: ubuntu-latest
@@ -18,24 +17,3 @@ jobs:
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

0 commit comments

Comments
 (0)