Skip to content

Commit

Permalink
Manual lint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mik3y committed Jun 25, 2017
1 parent 013367f commit 7b30433
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 14 deletions.
1 change: 0 additions & 1 deletion pykeg/backend/backends_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from pykeg.core import models
from pykeg.core import defaults
from django.test.utils import override_settings
from django.core import management

METER_NAME = 'kegboard.flow0'
FAKE_BEER_NAME = 'Testy Beer'
Expand Down
3 changes: 2 additions & 1 deletion pykeg/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)


def plugin_tasks(): return ['.'.join(x.split('.')[:-2]) for x in settings.KEGBOT_PLUGINS]
def plugin_tasks():
return ['.'.join(x.split('.')[:-2]) for x in settings.KEGBOT_PLUGINS]


app.autodiscover_tasks(plugin_tasks())
4 changes: 2 additions & 2 deletions pykeg/core/management/commands/kb_migrate_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
WARNING: Back up your data before proceeding.
"""

HELP_TEXT = __doc__

import pytz

from django.db import transaction
Expand All @@ -39,6 +37,8 @@
from django.utils import timezone
from pykeg.core import models

HELP_TEXT = __doc__


class Command(NoArgsCommand):
help = u'Regenerates timestamps due to timezone conversion.'
Expand Down
1 change: 0 additions & 1 deletion pykeg/core/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"""Generic unittests."""

import os
import unittest
import subprocess

from django.test import TestCase
Expand Down
6 changes: 3 additions & 3 deletions pykeg/notification/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

from __future__ import absolute_import

import logging
logger = logging.getLogger('notification')

from django.conf import settings
from django.utils.module_loading import import_string
from django.core.exceptions import ImproperlyConfigured

import logging
logger = logging.getLogger('notification')

__all__ = ['get_backends', 'handle_new_system_events']


Expand Down
3 changes: 1 addition & 2 deletions pykeg/web/account/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.conf.urls import url

from pykeg.plugin import util
from pykeg.web.account.views import password_change
from pykeg.web.account.views import password_change_done

from pykeg.web.account import views

urlpatterns = [
Expand All @@ -18,5 +18,4 @@
url(r'^plugin/(?P<plugin_name>\w+)/$', views.plugin_settings, name='account-plugin-settings'),
]

from pykeg.plugin import util
urlpatterns += util.get_account_urls()
2 changes: 1 addition & 1 deletion pykeg/web/kegadmin/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.conf import settings
from django.conf.urls import url

from pykeg.plugin import util
from pykeg.web.kegadmin import views

urlpatterns = [
Expand Down Expand Up @@ -68,6 +69,5 @@
url(r'^workers/$', views.workers, name='kegadmin-workers'),
]

from pykeg.plugin import util
if util.get_plugins():
urlpatterns += util.get_admin_urls()
1 change: 0 additions & 1 deletion pykeg/web/kegadmin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
from django.shortcuts import get_object_or_404
from django.shortcuts import redirect
from django.shortcuts import render
from django.template import RequestContext
from django.utils import timezone
from django.views.decorators.http import require_http_methods

Expand Down
5 changes: 3 additions & 2 deletions pykeg/web/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"""

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pykeg.settings")

from django.core.wsgi import get_wsgi_application


os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pykeg.settings")
application = get_wsgi_application()

0 comments on commit 7b30433

Please sign in to comment.