Skip to content

Commit 53417eb

Browse files
authored
Merge pull request #1 from CESNET/ci
Migrate ruff linting & formatting
2 parents 076a09a + c0eb425 commit 53417eb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.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
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
lint_and_format:
9+
name: Lint & Format
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Install ruff
16+
uses: astral-sh/ruff-action@v3
17+
with:
18+
version: "0.8.0"
19+
20+
- name: Run Ruff Linting
21+
run: ruff check --output-format=github
22+
23+
- name: Run Ruff Formatting
24+
run: ruff format --diff

0 commit comments

Comments
 (0)