From 40913249f273cf5666ad0f17e0bc0a4950bcff30 Mon Sep 17 00:00:00 2001 From: Cat Smith <910384+catsmith@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:48:09 +0000 Subject: [PATCH] add flake8 to CI --- .flake8 | 3 +++ .github/workflows/ci-flake8.yml | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .flake8 create mode 100644 .github/workflows/ci-flake8.yml diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..805122d --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +exclude=.git,__pycache__,migrations,management/commands/archive +max-line-length=120 diff --git a/.github/workflows/ci-flake8.yml b/.github/workflows/ci-flake8.yml new file mode 100644 index 0000000..6981b3a --- /dev/null +++ b/.github/workflows/ci-flake8.yml @@ -0,0 +1,25 @@ +name: ci-flake8 + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: ["3.10"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + pip install flake8 + - name: Run flake8 + run: | + flake8 -v . \ No newline at end of file