Skip to content

Commit 410aec9

Browse files
committed
Improve ruff for micropython formatting
1 parent 78d01cd commit 410aec9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python Lint and Format
1+
name: Format MicroPython Code
22

33
on:
44
push:
@@ -7,22 +7,22 @@ on:
77
branches: [main]
88

99
jobs:
10-
lint-format:
10+
ruff:
1111
runs-on: ubuntu-latest
1212

1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17-
- name: Run Ruff (lint + auto-fix)
17+
- name: Run Ruff with MicroPython-friendly config
1818
uses: astral-sh/ruff-action@v3
1919
with:
20-
args: check --fix
20+
args: check --select ALL --ignore F821,F401,E402 --exit-zero
2121

22-
- name: Run Ruff Format
22+
- name: Format code using Ruff
2323
run: ruff format .
2424

25-
- name: Commit and push changes (if any)
25+
- name: Commit and push formatting changes
2626
uses: stefanzweifel/git-auto-commit-action@v4
2727
with:
28-
commit_message: "Apply Ruff formatting and lint fixes"
28+
commit_message: "Apply Ruff formatting (MicroPython-safe)"

0 commit comments

Comments
 (0)