Skip to content

Add # flake8: noqa directive to all failing files #696

Add # flake8: noqa directive to all failing files

Add # flake8: noqa directive to all failing files #696

name: test Python cleanliness
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
# git checkout the PR
- uses: actions/checkout@v4
with:
submodules: 'recursive'
# Run flake8 but exclude third-party libraries
- run: pipx run flake8 --exclude=MAVProxy/modules/lib
# Once this has been running for a while, we can:
# - delete the lines below
# - delete scripts/run_flake8.py
# - remove all instances of AP_FLAKE8_CLEAN (git grep AP_FLAKE8_CLEAN)
- name: Install dependencies
run: python -m pip install --upgrade flake8
- name: Check Python with Flake8
run: scripts/run_flake8.py MAVProxy