Browse Source

Add flake8 linter to CI

pull/74/head
Clemens Wolff 6 years ago
parent
commit
3a2d2a73ac
4 changed files with 6 additions and 0 deletions
  1. 1
      .dockerignore
  2. 3
      .flake8
  3. 1
      requirements.txt
  4. 1
      tools/ci.sh

1
.dockerignore

@ -5,4 +5,5 @@ app/db.sqlite3
!data/
!tests/
!tools/
!.flake8
!requirements.txt

3
.flake8

@ -0,0 +1,3 @@
[flake8]
filename = app/*
max-line-length = 120

1
requirements.txt

@ -6,6 +6,7 @@ django-widget-tweaks==1.4.2
djangorestframework==3.8.2
djangorestframework-filters==0.10.2
Faker==0.8.8
flake8==3.6.0
gunicorn==19.9.0
mixer==6.1.3
psycopg2==2.7.5

1
tools/ci.sh

@ -2,6 +2,7 @@
set -o errexit
flake8
python app/manage.py migrate
python app/manage.py collectstatic
python app/manage.py test server.tests
Loading…
Cancel
Save