Skip to content

Commit e5959d7

Browse files
committed
chore(CI): Add ruff workflow
1 parent a89eb55 commit e5959d7

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ruff.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Ruff
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
14+
15+
steps:
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@82c7e631bb3a1e2b8b9cfa5760f8c527d5b9f7b4 # v6.1.0
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install uv
24+
run: pip install uv
25+
26+
- name: Install dependencies with uv
27+
run: uv sync
28+
29+
- name: Run Ruff linter
30+
run: |
31+
uv run ruff check --output-format=github .
32+
33+
34+
- name: Run Ruff formatter
35+
run: |
36+
uv run ruff format --diff .

0 commit comments

Comments
 (0)