Skip to content

Commit 9f8e501

Browse files
committed
Add automatic ruff code quality check
1 parent 02fb9fb commit 9f8e501

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ruff.yml

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

0 commit comments

Comments
 (0)