Skip to content

Commit 5d842cc

Browse files
authored
Update lint.yml
1 parent a1c6e30 commit 5d842cc

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/lint.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
name: Lint
22
on: [push, pull_request]
3+
34
jobs:
45
lint:
56
runs-on: ubuntu-latest
67
steps:
7-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@v5
9+
810
- name: Install uv
9-
uses: astral-sh/setup-uv@v3
11+
uses: astral-sh/setup-uv@v7
12+
1013
- name: Set up Python
1114
run: uv python install 3.12
15+
1216
- name: Install dependencies
13-
run: uv sync --extra dev
14-
- name: Run ruff
15-
run: uv run ruff check .
16-
- name: Run black
17-
run: uv run black --check .
17+
run: uv sync --extra dev --python 3.12
18+
19+
- name: Check formatting with Ruff
20+
run: uv run --python 3.12 ruff format --check .
21+
22+
- name: Run Ruff lint
23+
run: uv run --python 3.12 ruff check .

0 commit comments

Comments
 (0)