Skip to content

Commit c72cf62

Browse files
committed
update lint action
1 parent 6a517a3 commit c72cf62

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/lint.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@ on:
77
branches: [main]
88

99
jobs:
10-
lint:
10+
lint-and-format:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
1215
steps:
13-
- uses: actions/checkout@v4
14-
- name: Install uv
15-
uses: astral-sh/setup-uv@v4
16-
- name: Lint
17-
run: uvx ruff check src/ tests/
18-
- name: Format check
19-
run: uvx ruff format --check src/ tests/
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Run ruff lint
20+
uses: astral-sh/ruff-action@v3
21+
with:
22+
args: check --extend-select=I
23+
24+
- name: Run ruff format
25+
uses: astral-sh/ruff-action@v3
26+
with:
27+
args: format --check --diff

0 commit comments

Comments
 (0)