Adapt to iFixit API change where leaf categories are now null #242
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: QA | |
on: [push, pull_request] | |
env: | |
# black default | |
MAX_LINE_LENGTH: 88 | |
jobs: | |
check-qa: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Retrieve source code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
architecture: x64 | |
- name: Check black formatting | |
run: | | |
pip install black==22.3.0 | |
black --version | |
black --check . | |
- name: Check flake8 linting | |
run: | | |
pip install flake8==3.9.2 | |
flake8 --version | |
flake8 . --count --max-line-length=$MAX_LINE_LENGTH --statistics | |
- name: Check import order with isort | |
run: | | |
pip install isort==5.9.3 | |
isort --version | |
isort --profile black --check . |