Skip to content

Commit e16ed03

Browse files
Add Ruff linting workflow for pull requests
1 parent cc2911d commit e16ed03

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Ruff Lint"
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
ruff:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
19+
- name: Set up Python
20+
run: uv python install
21+
22+
- name: Run Ruff linter
23+
run: uv run ruff check .
24+
25+
- name: Run Ruff formatter check
26+
run: uv run ruff format --check .

0 commit comments

Comments
 (0)