Skip to content

flake8

flake8 #64

Workflow file for this run

# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: flake8
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip flake8 flake8-bugbear flake8-simplify flake8-pytest-style flake8-raise flake8-print flake8-eradicate flake8_boolean_trap flake8-builtins flake8-use-fstring refurb
- name: Check for errors with flake8
run: |
flake8 --max-line-length=120 --extend-ignore=E203,B019,SIM101,SIM113,A003 --per-file-ignores="test_*:SCS108,S101,F403,F401"
refurb --disable FURB121 .