name: Python Format | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
format: | |
name: Check format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install | |
run: | | |
pip install --upgrade pip | |
pip install black=="23.12.1" | |
- run: black --check tests/ py/pica --exclude py/pica/pica/packets |