Skip to content

Commit e24f9d7

Browse files
committed
CI: Fix linting.
1 parent 637d989 commit e24f9d7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/python-linting.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ jobs:
1212
- uses: actions/checkout@v3
1313

1414
- name: Install Python Deps
15-
run: python3 -m pip install flake8
16-
17-
- name: Lint MicroPython Examples
18-
shell: bash
1915
run: |
20-
python3 -m flake8 --show-source --ignore E501 examples/micropython
16+
python3 -m venv .venv
17+
source .venv/bin/activate
18+
python -m pip install flake8
2119
22-
- name: Lint Cosmic Unicorn Libs
20+
- name: Lint MicroPython Examples
2321
shell: bash
2422
run: |
25-
python3 -m flake8 --show-source --ignore E501 firmware/PIMORONI_COSMIC_UNICORN/lib
23+
source .venv/bin/activate
24+
python -m flake8 --show-source --ignore E501 examples/
2625
27-
- name: Lint Galactic Unicorn Libs
26+
- name: Lint MicroPython Modules
2827
shell: bash
2928
run: |
30-
python3 -m flake8 --show-source --ignore E501 firmware/PIMORONI_GALACTIC_UNICORN/lib
29+
source .venv/bin/activate
30+
python -m flake8 --show-source --ignore E501 modules/

ci/micropython.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function ci_micropython_build_mpy_cross {
7070
}
7171

7272
function ci_apt_install_build_deps {
73-
sudo apt update && sudo apt install ccache python3-virtualenvwrapper virtualenvwrapper
73+
sudo apt update && sudo apt install ccache
7474
}
7575

7676
function ci_prepare_all {

0 commit comments

Comments
 (0)