Adding PEP8/flake8 GitHub Action

This commit is contained in:
Xavier Fiechter 2023-07-06 17:03:31 +02:00
parent 32fff3260b
commit 2d11032ada
2 changed files with 31 additions and 0 deletions

3
.flake8 Normal file
View file

@ -0,0 +1,3 @@
[flake8]
exclude = .git,__pycache__,migrations
max-line-length = 120

28
.github/workflows/pep8.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: PEP8 Check
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install flake8
- name: Run flake8
run: flake8