Skip to content

Commit 2cb61f2

Browse files
committed
ci: Replace pycodestyle with ruff check and ruff format
Replace the Pep8Checker with a RuffChecker in checkstyle.py and add a RuffFormatter for Python files. Add ruff check and ruff format steps to the CI style checker workflow. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent da7593d commit 2cb61f2

File tree

2 files changed

+231
-129
lines changed

2 files changed

+231
-129
lines changed

.github/workflows/libpisp-style-checker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,14 @@ jobs:
1717
fetch-depth: 0
1818
clean: true
1919

20+
- name: Install ruff
21+
run: pip install ruff
22+
23+
- name: Ruff check
24+
run: ruff check utils/
25+
26+
- name: Ruff format
27+
run: ruff format --check utils/
28+
2029
- name: Check style
2130
run: ${{github.workspace}}/utils/checkstyle.py $(git log --format=%P -1 | awk '{print $1 ".." $2}')

0 commit comments

Comments
 (0)