Skip to content

apply isort

apply isort #17

Workflow file for this run

name: Python checks
on:
push:
paths:
- "*.py"
- .github/workflows/python-checks.yml
- pylintrc
jobs:
checks:
name: Python checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
# This is what Raspbian is using.
python-version: "3.9"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 -m pip install pytest
- name: Run flake8
run: |
python3 -m pip install flake8
flake8 --ignore=E501 *.py
- name: Run pylint
run: |
python3 -m pip install pylint
pylint *.py
- name: Run black in check mode
run: |
python3 -m pip install black
black --check *.py
- name: Run isort in check mode
run: |
python3 -m pip install isort
isort *.py --check --diff
- name: Run pytest
run: |
pytest -vvv