Skip to content

Commit 2622d61

Browse files
committed
add ruff to gh action format check
1 parent 9eff4f0 commit 2622d61

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/pytest.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ jobs:
3333
pip install flake8
3434
# stop the build if there are Python syntax errors or undefined names
3535
flake8 pori_python --count --select=E9,F63,F7,F82 --show-source --statistics
36-
- name: Check with black
36+
- name: Check with black and ruff
3737
run: |
3838
pip install black
39+
pip install ruff
3940
black --check -S -l 100 pori_python tests
41+
ruff format --check pori_python tests
4042
- name: Full Tests with pytest
4143
run: |
4244
pip list

.github/workflows/quick-pytest.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ jobs:
3030
pip install flake8
3131
# stop the build if there are Python syntax errors or undefined names
3232
flake8 pori_python --count --select=E9,F63,F7,F82 --show-source --statistics
33-
- name: Check with black
33+
- name: Check with black and ruff
3434
run: |
3535
pip install black
36+
pip install ruff
3637
black --check -S -l 100 pori_python tests
38+
ruff format --check pori_python tests
3739
- name: Short Tests with pytest
3840
run: pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov ipr --cov-report term --cov-report xml
3941
env:

0 commit comments

Comments
 (0)