Skip to content

Merge pull request #347 from mj-will/update-main #479

Merge pull request #347 from mj-will/update-main

Merge pull request #347 from mj-will/update-main #479

Workflow file for this run

name: Lint
on:
push:
branches: [ main, release* ]
pull_request:
branches: [ main, release* ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
black:
name: Lint - Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
options: "--check --diff"
version: "22.12"
flake8:
name: Lint - Flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
- name: Lint with flake8
run: |
python -m flake8 .