Skip to content

Commit 2564136

Browse files
committed
add ruff to ci
1 parent cf96b8c commit 2564136

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ruff.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Ruff Linting
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
linting:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 1
13+
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v5
16+
17+
- name: Set up Python
18+
run: uv sync
19+
20+
- name: install ruff
21+
run: uv tool install ruff@latest
22+
23+
- name: Lint Source Code
24+
run: uvx ruff check

0 commit comments

Comments
 (0)