Skip to content

Commit 7d902e0

Browse files
I've updated the GitHub workflow to check Python formatting.
This change updates the `_test.yml` GitHub workflow to include a step that verifies Python code formatting using `ruff format --check`. Ruff has also been added to the dependencies installed during the workflow.
1 parent 5c4d6ba commit 7d902e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/_test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Install Python toolchains
4343
run: |
4444
source .venv/bin/activate
45-
pip install maturin pytest mypy
45+
pip install maturin pytest mypy ruff
4646
- name: Python build
4747
run: |
4848
source .venv/bin/activate
@@ -54,4 +54,8 @@ jobs:
5454
- name: Python tests
5555
run: |
5656
source .venv/bin/activate
57-
pytest python/cocoindex/tests
57+
pytest python/cocoindex/tests
58+
- name: Check Python formatting
59+
run: |
60+
source .venv/bin/activate
61+
python -m ruff format --check .

0 commit comments

Comments
 (0)