Skip to content

Commit a679dfc

Browse files
committed
[CI] Add ruff check
1 parent 4ecaef5 commit a679dfc

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ riscv-isac/riscv-env
1515

1616
__pycache__
1717
riscof_work
18+
19+
# ignore ruff cache
20+
.ruff_cache

0 commit comments

Comments
 (0)