Skip to content

Commit d5a05a7

Browse files
committed
Add a GitHub actions workflow for the ruff formatter and linter
1 parent 5c68d06 commit d5a05a7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ruff.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Ruff
2+
on: [push, pull_request]
3+
4+
env:
5+
RUFF_VERSION: 0.11.4
6+
7+
jobs:
8+
ruff:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: astral-sh/ruff-action@v3
13+
with:
14+
version: ${{ env.RUFF_VERSION }}
15+
args: check --output-format=github
16+
- uses: astral-sh/ruff-action@v3
17+
with:
18+
version: ${{ env.RUFF_VERSION }}
19+
args: format --diff

0 commit comments

Comments
 (0)