mirror of
https://github.com/danbee/unicorn
synced 2026-06-20 22:52:22 +00:00
CI: Fix linting.
This commit is contained in:
parent
637d989f45
commit
562f323d69
18
.github/workflows/python-linting.yml
vendored
18
.github/workflows/python-linting.yml
vendored
@ -12,19 +12,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Python Deps
|
- name: Install Python Deps
|
||||||
run: python3 -m pip install flake8
|
run: |
|
||||||
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
python -m pip install flake8
|
||||||
|
|
||||||
- name: Lint MicroPython Examples
|
- name: Lint MicroPython Examples
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
python3 -m flake8 --show-source --ignore E501 examples/micropython
|
source .venv/bin/activate
|
||||||
|
python -m flake8 --show-source --ignore E501 examples/
|
||||||
- name: Lint Cosmic Unicorn Libs
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
python3 -m flake8 --show-source --ignore E501 firmware/PIMORONI_COSMIC_UNICORN/lib
|
|
||||||
|
|
||||||
- name: Lint Galactic Unicorn Libs
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
python3 -m flake8 --show-source --ignore E501 firmware/PIMORONI_GALACTIC_UNICORN/lib
|
|
||||||
@ -70,7 +70,7 @@ function ci_micropython_build_mpy_cross {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ci_apt_install_build_deps {
|
function ci_apt_install_build_deps {
|
||||||
sudo apt update && sudo apt install ccache python3-virtualenvwrapper virtualenvwrapper
|
sudo apt update && sudo apt install ccache
|
||||||
}
|
}
|
||||||
|
|
||||||
function ci_prepare_all {
|
function ci_prepare_all {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user