diff --git a/.github/workflows/code-standards.yml b/.github/workflows/code-standards.yml new file mode 100644 index 0000000..06cc885 --- /dev/null +++ b/.github/workflows/code-standards.yml @@ -0,0 +1,25 @@ +name: Code Standards +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + flake8-lint: + runs-on: ubuntu-latest + container: + image: python:3.12-bookworm + name: Lint + steps: + - name: Check out source repository + uses: actions/checkout@v4 + + - name: flake8 Lint + uses: reviewdog/action-flake8@v3 + with: + github_token: '${{ secrets.GITHUB_TOKEN }}' + filter_mode: file + fail_on_error: true + flake8_args: '--ignore E501,E722,F,C9,N8'