2021-04-15 09:21:27 +01:00
|
|
|
name: Python
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-03-11 12:20:27 +00:00
|
|
|
name: Python Linting
|
|
|
|
runs-on: ubuntu-20.04
|
2021-04-15 09:21:27 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2022-03-11 12:20:27 +00:00
|
|
|
- name: Install Python Deps
|
|
|
|
run: python3 -m pip install flake8
|
|
|
|
|
|
|
|
- name: Lint micropython/modules_py
|
|
|
|
shell: bash
|
2021-04-15 09:21:27 +01:00
|
|
|
run: |
|
2022-08-03 08:58:04 +01:00
|
|
|
python3 -m flake8 --show-source --ignore E501 micropython/modules_py
|
2021-04-15 09:21:27 +01:00
|
|
|
|
2022-03-11 12:20:27 +00:00
|
|
|
- name: Lint micropython/examples
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-08-03 08:58:04 +01:00
|
|
|
python3 -m flake8 --show-source --ignore E501 micropython/examples
|
2021-04-15 09:21:27 +01:00
|
|
|
|
2022-03-11 12:20:27 +00:00
|
|
|
- name: Lint .py tools in C++ examples
|
2021-04-15 09:21:27 +01:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2022-08-03 08:58:04 +01:00
|
|
|
python3 -m flake8 --show-source --ignore E501 examples
|