Skip to content

Commit bfd2f80

Browse files
committed
Add ruff github action+fix
1 parent 1053a32 commit bfd2f80

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/ruff.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
name: Ruff
2-
on: [ push ]
2+
on: [ push, pull_request ]
33
jobs:
44
ruff:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v4
8-
- name: Install Python
9-
uses: actions/setup-python@v5
8+
- uses: astral-sh/ruff-action@v3
109
with:
11-
python-version: "3.11"
12-
- name: Install dependencies
13-
run: |
14-
python -m pip install --upgrade pip
15-
pip install ruff
16-
- name: Run Ruff
17-
run: ruff check --output-format=github .
10+
args: check --output-format=github

0 commit comments

Comments
 (0)