Skip to content

Commit

Permalink
Fix the pep8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dulacp committed Feb 2, 2016
1 parent fa2974c commit 6b4bc26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
.PHONY: contribute travis test lint coverage

test:
pep8 --ignore E128,E201,E202 --max-line-length=120 --exclude='migrations' .
pep8 --ignore E128,E201,E202,E731 --max-line-length=120 --exclude='migrations' .
4 changes: 2 additions & 2 deletions {{cookiecutter.repo_name}}/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ cookiecutter.repo_name }}.settings.dev")

from django.core.wsgi import get_wsgi_application
from dj_static import Cling
from django.core.wsgi import get_wsgi_application # NOQA
from dj_static import Cling # NOQA
application = Cling(get_wsgi_application())
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def is_disabled(field):
def is_readonly(field):
if isinstance(field, BoundField):
field = field.field
return ('readonly' in field.widget.attrs
and field.widget.attrs.get('readonly') is True)
return ('readonly' in field.widget.attrs and
field.widget.attrs.get('readonly') is True)


@register.filter
Expand Down

0 comments on commit 6b4bc26

Please sign in to comment.