Skip to content

Commit 621ef97

Browse files
committed
Add GitHub Actions CI with ruff linting
1 parent 7f65d99 commit 621ef97

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ruff-ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Ruff Code Quality Check
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
ruff-check:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.10'
21+
22+
- name: Install ruff
23+
run: pip install ruff
24+
25+
- name: Run ruff check
26+
run: ruff check git/src/
27+
28+
- name: Run ruff format check
29+
run: ruff format --check git/src/

0 commit comments

Comments
 (0)