Skip to content

Commit

Permalink
Add flake8 Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ormergi committed Oct 10, 2021
1 parent bf15c54 commit e3629c1
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Flake8
on: pull_request
jobs:
flake8:
name: Check code with Flake8
runs-on: ubuntu-20.04
container: fedora:32
steps:
- name: Install Pipenv and Git
run: dnf install -y pipenv git
- name: Checkout code
uses: actions/checkout@v2
- name: Setup environment
run: pipenv sync --dev
- name: Run Flake8
run: pipenv run flake8 --max-line-length 120
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
flake8 = "*"

[packages]
django = "*"
Expand Down
34 changes: 32 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3629c1

Please sign in to comment.