Skip to content

Commit 20fb505

Browse files
committedMar 4, 2025
✨ Replace black and isort with ruff (#174)
1 parent ede5e71 commit 20fb505

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+478
-759
lines changed
 

‎.github/workflows/test_and_publish.yaml

+13-16
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
branches:
66
- master
77
paths-ignore:
8-
- 'examples/**'
9-
- '.github/**'
10-
- 'docs/**'
11-
- 'scripts/**'
12-
- 'Dockerfiles/**'
8+
- "examples/**"
9+
- ".github/**"
10+
- "docs/**"
11+
- "scripts/**"
12+
- "Dockerfiles/**"
1313

1414
env:
1515
DEFAULT_LINUX: "slim"
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
python: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
25+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2626
container:
2727
image: python:${{ matrix.python }}
2828
steps:
@@ -40,18 +40,15 @@ jobs:
4040
run: |
4141
pip install pip poetry --upgrade
4242
./scripts/install
43-
- id: black
43+
- id: format
4444
name: Code format checking
45-
run: ./scripts/black --check .
46-
- id: isort
47-
name: Imports order checking
48-
run: ./scripts/isort --check .
49-
- id: ruff
50-
name: Code style (ruff)
51-
run: ./scripts/ruff .
52-
- id: pyright
45+
run: ./scripts/format --check .
46+
- id: lint
47+
name: Code linting
48+
run: ./scripts/lint --output-format=github .
49+
- id: types
5350
name: Static types check
54-
run: ./scripts/pyright
51+
run: ./scripts/types
5552
- id: tests
5653
name: Tests
5754
run: ./scripts/test

‎.github/workflows/test_pull_request_branch.yaml

+7-10
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,15 @@ jobs:
2828
run: |
2929
pip install pip poetry --upgrade
3030
./scripts/install
31-
- id: black
31+
- id: format
3232
name: Code format checking
33-
run: ./scripts/black --check .
34-
- id: isort
35-
name: Imports order checking
36-
run: ./scripts/isort --check .
37-
- id: ruff
38-
name: Code style (ruff)
39-
run: ./scripts/ruff .
40-
- id: pyright
33+
run: ./scripts/format --check .
34+
- id: lint
35+
name: Code linting
36+
run: ./scripts/lint --output-format=github .
37+
- id: types
4138
name: Static types check
42-
run: ./scripts/pyright
39+
run: ./scripts/types
4340
- id: tests
4441
name: Tests
4542
run: ./scripts/test

0 commit comments

Comments
 (0)