Skip to content

Commit 2ff9551

Browse files
committed
Add ruff Github action
1 parent 4d2194c commit 2ff9551

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ["master"]
5+
pull_request:
6+
7+
jobs:
8+
format:
9+
runs-on: ubuntu-24.04
10+
name: "Linting and formatting"
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Run ruff check
16+
uses: astral-sh/ruff-action@v2
17+
18+
- name: Run ruff format --check
19+
uses: astral-sh/ruff-action@v2
20+
with:
21+
args: "format --check"

0 commit comments

Comments
 (0)