Skip to content

Commit 7872900

Browse files
committed
👷 Switch to ruff
1 parent 33343b8 commit 7872900

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade pip
3838
pip install \
39-
isort~=6.0.0 \
40-
black~=25.1.0
41-
- name: Check import style with isort
42-
run: |
43-
isort . --check --profile black --diff
44-
- name: Check code style with Black
45-
run: |
46-
black . --check --diff
39+
ruff~=0.12.10
40+
- name: Check code style with Ruff
41+
run: ruff format --check
42+
- name: Check code lint rules with Ruff
43+
run: ruff check
44+
4745
deploy:
4846
# if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/main' }}
4947
runs-on: ubuntu-latest

.github/workflows/python-test-publish.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,11 @@ jobs:
3838
run: |
3939
python -m pip install --upgrade pip
4040
pip install \
41-
isort~=6.0.0 \
42-
black~=25.1.0
43-
- name: Check import style with isort
44-
run: |
45-
isort . --check --profile black --diff
46-
- name: Check code style with Black
47-
run: |
48-
black . --check --diff
41+
ruff~=0.12.10
42+
- name: Check code style with Ruff
43+
run: ruff format --check
44+
- name: Check code lint rules with Ruff
45+
run: ruff check
4946

5047
deploy:
5148
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)