Fix flake8 warnings

This commit fixes all warnings created by flake8 by removing unused
imports and variable assignments. Some wrongly indented lines are now
indented correctly.
This commit is contained in:
Jan Dittberner 2015-12-05 13:47:41 +00:00
parent 30600ce107
commit fb1f31a9bc
12 changed files with 50 additions and 49 deletions

View file

@ -1,3 +1,4 @@
from gnuviechadmin.celery import app as celery_app
# import celery_app to initialize it
from gnuviechadmin.celery import app as celery_app # NOQA
__version__ = '0.12.dev1'

View file

@ -4,7 +4,8 @@
from __future__ import absolute_import
from .base import *
# use import * to import all settings from base
from .base import * # NOQA
# ######### DEBUG CONFIGURATION

View file

@ -4,7 +4,8 @@
from __future__ import absolute_import
from .base import *
# use import * to import all settings from base
from .base import * # NOQA
# ######### HOST CONFIGURATION
# See: https://docs.djangoproject.com/en/1.5/releases/1.5/#allowed-hosts-required-in-production # noqa

View file

@ -1,6 +1,7 @@
from __future__ import absolute_import
from .base import *
# use import * to import all settings from base
from .base import * # NOQA
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',

View file

@ -56,7 +56,7 @@ class NavigationContextProcessorTest(TestCase):
self.assertEqual(response.context['active_item'], 'contact')
def test_hostingpackage_page_context(self):
user = User.objects.create_user('test', password='test')
User.objects.create_user('test', password='test')
self.client.login(username='test', password='test')
response = self.client.get(
reverse('hosting_packages', kwargs={'user': 'test'}))