name: flake8 on: pull_request: paths: - 'library/**.py' - 'module_utils/**.py' - 'plugins/filter/**.py' - 'tests/conftest.py' - 'tests/library/**.py' - 'tests/module_utils/**.py' - 'tests/plugins/filter/**.py' - 'tests/functional/tests/**.py' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Setup python uses: actions/setup-python@v2 with: python-version: '3.10' architecture: x64 - run: pip install flake8 - run: flake8 --max-line-length 160 ./library/ ./module_utils/ ./plugins/filter/ ./tests/library/ ./tests/module_utils/ ./tests/plugins/filter/ ./tests/conftest.py ./tests/functional/tests/