From 2d11032ada8400dd32d6823bea394ad76ff05fc6 Mon Sep 17 00:00:00 2001 From: Xavier Fiechter Date: Thu, 6 Jul 2023 17:03:31 +0200 Subject: [PATCH] Adding PEP8/flake8 GitHub Action --- .flake8 | 3 +++ .github/workflows/pep8.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .flake8 create mode 100644 .github/workflows/pep8.yml diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..48c6dff --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +exclude = .git,__pycache__,migrations +max-line-length = 120 diff --git a/.github/workflows/pep8.yml b/.github/workflows/pep8.yml new file mode 100644 index 0000000..b83a4d6 --- /dev/null +++ b/.github/workflows/pep8.yml @@ -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