Add the GitHub Super-Linter

Add Python flake8 linting for W291 trailing whitespace
This commit is contained in:
John Bampton 2022-02-19 17:45:14 +10:00
parent 898ee37a87
commit 9260e62540
2 changed files with 16 additions and 0 deletions

2
.github/linters/.flake8 vendored Normal file
View File

@ -0,0 +1,2 @@
[flake8]
select = W291

14
.github/workflows/linter.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Lint Code Base
on: [pull_request]
jobs:
build:
name: GitHub Super Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: github/super-linter@v4
env:
VALIDATE_PYTHON_FLAKE8: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}