Skip to content

Commit 6f80505

Browse files
authored
Ruff as part of PR auto-format (#6421)
1 parent c11a72a commit 6f80505

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ jobs:
322322
uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1
323323
with:
324324
version: "0.14.9"
325+
args: "--version"
325326

326327
- run: ruff check --diff
327328

.github/workflows/pr-auto-commit.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939
echo "Running cargo fmt --all on PR #${{ github.event.pull_request.number }}"
4040
cargo fmt --all
4141
42+
- name: Install ruff
43+
uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1
44+
with:
45+
version: "0.14.9"
46+
args: "--version"
47+
48+
- run: ruff format
49+
- run: ruff check --select I --fix
50+
4251
- name: Configure git
4352
run: |
4453
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)