name: flake8

on:
  push:
    branches:
      - master
      - develop
  pull_request:

jobs:
  flake8-lint:
    runs-on: ubuntu-latest
    name: Lint
    steps:
      - name: Check out source repository
        uses: actions/checkout@v2
      - name: Set up Python environment
        uses: actions/setup-python@v1
        with:
          python-version: "3.8"
      - name: flake8 Lint
        uses: py-actions/flake8@v1
        with:
          ignore: "E501"
          exclude: "__init__.py, input/__init__.py"
          path: "pyerrors"
