Skip to content

Commit 6056226

Browse files
committed
[CI] Add ruff check
1 parent 604932a commit 6056226

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/ruff.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lint and format
2+
3+
on:
4+
push:
5+
branches: [ '**' ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: astral-sh/ruff-action@v1
14+
with:
15+
args: check
16+
src: "."

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
*.DS_Store
1010

1111
riscv-target/
12+
# ignore ruff cache
13+
.ruff_cache

0 commit comments

Comments
 (0)