Skip to content

Commit

Permalink
add flake8 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
catsmith committed Feb 12, 2024
1 parent c5336fd commit 4091324
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
exclude=.git,__pycache__,migrations,management/commands/archive
max-line-length=120
25 changes: 25 additions & 0 deletions .github/workflows/ci-flake8.yml
Original file line number Diff line number Diff line change
@@ -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 .

0 comments on commit 4091324

Please sign in to comment.