Add # flake8: noqa directive to all failing files
#696
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |