File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Python Lint and Format
1+ name : Format MicroPython Code
22
33on :
44 push :
77 branches : [main]
88
99jobs :
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) "
You can’t perform that action at this time.
0 commit comments