kopia lustrzana https://github.com/micropython/micropython-lib
github/workflows: Split ruff into its own action.
This matches the main repo, and conceputually ruff is not strictly doing "code formatting". Signed-off-by: Jim Mussared <jim.mussared@gmail.com>pull/706/head
rodzic
efa0402846
commit
ce3f282967
|
@ -7,8 +7,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: pip install --user ruff
|
|
||||||
- run: ruff --format=github .
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: source tools/ci.sh && ci_code_formatting_setup
|
run: source tools/ci.sh && ci_code_formatting_setup
|
||||||
|
|
|
@ -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 .
|
Ładowanie…
Reference in New Issue