Skip to content

Flake8 workflow

Flake8 workflow #10

Workflow file for this run

name: flake8 Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Flake8 Lint
steps:
- name: Check out
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry lock --no-update
poetry install
pip install black
pip install isort
pip install flake8
- name: Run Black
run: black ./ --config pyproject.toml
- name: Run Isort
run: isort .
- name: Setup flake8 annotations
uses: rbialon/flake8-annotations@v1
- name: Link and annotate with Flake8
run: flake8 --max-line-length=119 --extend-ignore=F401,W503,E203,E701 --exclude=.git,.github,build,dist,docs,venv,.venv,env,.env,.idea,.vscode --max-complexity=10