Skip to content

Commit f41eca7

Browse files
committed
workflows: Add ruff lint & format to default pr action
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
1 parent bf6c03d commit f41eca7

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
- name: Test mctp
3030
run: meson test -C build --verbose
3131

32+
- name: Check python tests
33+
run: ruff check tests/
34+
35+
- name: Format python tests
36+
run: ruff format --diff tests/
37+
3238
- uses: actions/upload-artifact@v4
3339
if: always()
3440
with:

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pytest==8.3.2
44
pytest-trio==0.8.0
55
trio==0.31.0
66
pytest-tap==3.5
7+
ruff==0.14.10

0 commit comments

Comments
 (0)