mirror of
https://github.com/micropython/micropython.git
synced 2026-01-09 05:30:27 +01:00
github/workflows: Add GitHub Action to lint Python code with ruff.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
committed by
Damien George
parent
2a1db770ce
commit
78a1aa1711
10
.github/workflows/ruff.yml
vendored
Normal file
10
.github/workflows/ruff.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
||||
name: Python code lint with ruff
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: pip install --user ruff
|
||||
- run: ruff --format=github .
|
||||
Reference in New Issue
Block a user