Skip to content

Commit fcbebe8

Browse files
committed
CI: Add Python linting workflow.
1 parent 2b61abd commit fcbebe8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/python-linting.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Python Linting
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: Python Linting
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install Python Deps
15+
run: python3 -m pip install ruff
16+
17+
- name: Lint Frozen Modules
18+
shell: bash
19+
run: |
20+
python3 -m ruff check --output-format=full --ignore E501 modules/py_frozen
21+
22+
- name: Lint Examples
23+
shell: bash
24+
run: |
25+
python3 -m ruff check --output-format=full --ignore E501 modules/py_littlefs

0 commit comments

Comments
 (0)