Skip to content

Commit

Permalink
CI: Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Dec 4, 2024
1 parent 637d989 commit 562f323
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/python-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ jobs:
- uses: actions/checkout@v3

- name: Install Python Deps
run: python3 -m pip install flake8

- name: Lint MicroPython Examples
shell: bash
run: |
python3 -m flake8 --show-source --ignore E501 examples/micropython
python3 -m venv .venv
source .venv/bin/activate
python -m pip install flake8
- 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
- name: Lint MicroPython Examples
shell: bash
run: |
python3 -m flake8 --show-source --ignore E501 firmware/PIMORONI_GALACTIC_UNICORN/lib
source .venv/bin/activate
python -m flake8 --show-source --ignore E501 examples/
2 changes: 1 addition & 1 deletion ci/micropython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function ci_micropython_build_mpy_cross {
}

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 {
Expand Down

0 comments on commit 562f323

Please sign in to comment.