Skip to content

Commit c4577d6

Browse files
committed
use ruff instead of black for ci
1 parent 3529cab commit c4577d6

File tree

1 file changed

+10
-26
lines changed

1 file changed

+10
-26
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,21 @@ on:
77
pull_request:
88

99
jobs:
10-
code-format:
10+
lint_check_ruff:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
- uses: astral-sh/ruff-action@v3
1415
with:
15-
fetch-depth: 10
16-
- name: Verify git status
17-
run: |
18-
git status
19-
git remote -v
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v5
16+
args: "check"
17+
18+
lint_format_ruff:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: astral-sh/ruff-action@v3
2223
with:
23-
python-version: "3.12"
24-
- name: Display Python version
25-
run: python -c "import sys; print(sys.version)"
26-
- name: Display installed python package versions
27-
run: |
28-
pip list || :
29-
- name: Install build dependencies
30-
run: |
31-
pip install -r requirements.txt
32-
- name: Install black
33-
run: |
34-
pip install black==24.4.2
35-
- name: Display installed python package versions
36-
run: |
37-
pip list || :
38-
- name: Check formatting
39-
run: |
40-
black --check .
24+
args: "format --check"
4125

4226
test:
4327
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)