From 028332da4acb1ef6b9b9a1026affcf97e5501a84 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Fri, 3 Jan 2014 17:31:49 +0100 Subject: [PATCH] Remove #noqa from most common imports and add them to import_exceptions We have a lot of import with #noqa that is there to ignore h302, because it's traditional to import and use a name directly, instead of a whole module. This hides other errors and gives people the impression that it's actually fine to import non-modules, you just have to slap #noqa on those lines. I went through the code and identified about a dozen names that are most commonly imported this way. I remove the #noqa tag from them, and added them to the list in import_exceptions. I also removed a few unused imports that were revealed in the process. Change-Id: I27afb8e2b1d4759ec974ded9464d8f010312ee78 --- HACKING.rst | 22 ++++++++++++++++++- horizon/base.py | 8 +++---- horizon/browsers/base.py | 2 +- horizon/browsers/views.py | 2 +- horizon/conf/default.py | 4 ++-- horizon/decorators.py | 2 +- horizon/exceptions.py | 2 +- horizon/loaders.py | 2 +- horizon/middleware.py | 4 ++-- horizon/site_urls.py | 2 +- horizon/tables/actions.py | 8 +++---- horizon/tables/base.py | 14 ++++++------ horizon/templatetags/branding.py | 6 ++--- horizon/templatetags/horizon.py | 6 ++--- horizon/test/tests/base.py | 2 +- horizon/test/tests/messages.py | 5 ++--- horizon/test/tests/middleware.py | 3 +-- horizon/test/tests/tables.py | 2 +- horizon/test/tests/templatetags.py | 2 +- horizon/utils/fields.py | 8 +++---- horizon/utils/functions.py | 4 ++-- horizon/utils/validators.py | 2 +- horizon/workflows/base.py | 4 ++-- openstack_dashboard/api/base.py | 2 +- openstack_dashboard/api/ceilometer.py | 4 ++-- openstack_dashboard/api/cinder.py | 4 ++-- openstack_dashboard/api/glance.py | 2 +- openstack_dashboard/api/heat.py | 2 +- openstack_dashboard/api/keystone.py | 4 ++-- openstack_dashboard/api/network.py | 2 -- openstack_dashboard/api/neutron.py | 6 ++--- openstack_dashboard/api/nova.py | 4 ++-- openstack_dashboard/api/swift.py | 4 ++-- openstack_dashboard/api/trove.py | 2 +- openstack_dashboard/context_processors.py | 2 +- .../dashboards/admin/dashboard.py | 2 +- .../dashboards/admin/defaults/panel.py | 2 +- .../dashboards/admin/defaults/tables.py | 2 +- .../dashboards/admin/defaults/tabs.py | 2 +- .../dashboards/admin/defaults/tests.py | 2 +- .../dashboards/admin/defaults/views.py | 2 +- .../dashboards/admin/defaults/workflows.py | 2 +- .../dashboards/admin/domains/panel.py | 2 +- .../dashboards/admin/domains/tables.py | 8 +++---- .../dashboards/admin/domains/tests.py | 2 +- .../dashboards/admin/domains/views.py | 4 ++-- .../dashboards/admin/domains/workflows.py | 6 ++--- .../dashboards/admin/flavors/extras/forms.py | 2 +- .../dashboards/admin/flavors/extras/tables.py | 4 ++-- .../dashboards/admin/flavors/extras/tests.py | 2 +- .../dashboards/admin/flavors/extras/views.py | 2 +- .../dashboards/admin/flavors/panel.py | 2 +- .../dashboards/admin/flavors/tables.py | 6 ++--- .../dashboards/admin/flavors/tests.py | 2 +- .../dashboards/admin/flavors/views.py | 4 ++-- .../dashboards/admin/flavors/workflows.py | 2 +- .../dashboards/admin/groups/forms.py | 2 +- .../dashboards/admin/groups/panel.py | 2 +- .../dashboards/admin/groups/tables.py | 4 ++-- .../dashboards/admin/groups/tests.py | 2 +- .../dashboards/admin/groups/views.py | 6 ++--- .../dashboards/admin/hypervisors/panel.py | 2 +- .../dashboards/admin/hypervisors/tables.py | 2 +- .../dashboards/admin/hypervisors/tests.py | 2 +- .../dashboards/admin/hypervisors/views.py | 2 +- .../dashboards/admin/images/panel.py | 2 +- .../dashboards/admin/images/tables.py | 2 +- .../dashboards/admin/images/tests.py | 4 ++-- .../dashboards/admin/images/views.py | 4 ++-- .../dashboards/admin/info/panel.py | 2 +- .../dashboards/admin/info/tables.py | 2 +- .../dashboards/admin/info/tabs.py | 2 +- .../dashboards/admin/info/tests.py | 2 +- .../dashboards/admin/instances/forms.py | 4 ++-- .../dashboards/admin/instances/panel.py | 2 +- .../dashboards/admin/instances/tables.py | 5 +---- .../dashboards/admin/instances/tests.py | 4 ++-- .../dashboards/admin/instances/views.py | 8 +++---- .../dashboards/admin/metering/panel.py | 2 +- .../dashboards/admin/metering/tabs.py | 2 +- .../dashboards/admin/metering/tests.py | 4 ++-- .../dashboards/admin/metering/views.py | 2 +- .../dashboards/admin/networks/forms.py | 5 ++--- .../dashboards/admin/networks/panel.py | 2 +- .../dashboards/admin/networks/ports/forms.py | 4 ++-- .../dashboards/admin/networks/ports/tables.py | 4 ++-- .../dashboards/admin/networks/ports/tabs.py | 4 ++-- .../dashboards/admin/networks/ports/views.py | 4 ++-- .../admin/networks/subnets/tables.py | 4 ++-- .../admin/networks/subnets/workflows.py | 4 ++-- .../dashboards/admin/networks/tables.py | 4 ++-- .../dashboards/admin/networks/tests.py | 2 +- .../dashboards/admin/networks/views.py | 6 ++--- .../dashboards/admin/overview/panel.py | 2 +- .../dashboards/admin/overview/tests.py | 2 +- .../dashboards/admin/overview/views.py | 4 ++-- .../dashboards/admin/projects/panel.py | 2 +- .../dashboards/admin/projects/tables.py | 6 ++--- .../dashboards/admin/projects/tests.py | 2 +- .../dashboards/admin/projects/views.py | 4 ++-- .../dashboards/admin/projects/workflows.py | 6 ++--- .../dashboards/admin/roles/forms.py | 2 +- .../dashboards/admin/roles/panel.py | 2 +- .../dashboards/admin/roles/tables.py | 2 +- .../dashboards/admin/roles/tests.py | 2 +- .../dashboards/admin/roles/views.py | 6 ++--- .../routers/extensions/routerrules/tables.py | 2 +- .../dashboards/admin/routers/panel.py | 2 +- .../dashboards/admin/routers/ports/tables.py | 2 +- .../dashboards/admin/routers/tables.py | 2 +- .../dashboards/admin/routers/tests.py | 2 +- .../dashboards/admin/routers/views.py | 4 ++-- .../dashboards/admin/users/forms.py | 2 +- .../dashboards/admin/users/panel.py | 2 +- .../dashboards/admin/users/tables.py | 2 +- .../dashboards/admin/users/tests.py | 2 +- .../dashboards/admin/users/views.py | 6 ++--- .../dashboards/admin/volumes/forms.py | 2 +- .../dashboards/admin/volumes/panel.py | 2 +- .../dashboards/admin/volumes/tables.py | 2 +- .../dashboards/admin/volumes/tests.py | 2 +- .../dashboards/admin/volumes/views.py | 6 ++--- .../access_and_security/api_access/tables.py | 2 +- .../access_and_security/api_access/tests.py | 2 +- .../access_and_security/api_access/views.py | 2 +- .../access_and_security/floating_ips/forms.py | 2 +- .../floating_ips/tables.py | 4 ++-- .../access_and_security/floating_ips/tests.py | 2 +- .../access_and_security/floating_ips/views.py | 4 ++-- .../floating_ips/workflows.py | 4 ++-- .../access_and_security/keypairs/forms.py | 2 +- .../access_and_security/keypairs/tables.py | 2 +- .../access_and_security/keypairs/tests.py | 2 +- .../access_and_security/keypairs/views.py | 6 ++--- .../project/access_and_security/panel.py | 2 +- .../security_groups/forms.py | 6 ++--- .../security_groups/tables.py | 6 ++--- .../security_groups/tests.py | 4 ++-- .../security_groups/views.py | 6 ++--- .../project/access_and_security/tabs.py | 2 +- .../project/access_and_security/tests.py | 2 +- .../dashboards/project/containers/browsers.py | 2 +- .../dashboards/project/containers/forms.py | 4 ++-- .../dashboards/project/containers/panel.py | 2 +- .../dashboards/project/containers/tables.py | 4 ++-- .../dashboards/project/containers/tests.py | 2 +- .../dashboards/project/containers/views.py | 4 ++-- .../dashboards/project/dashboard.py | 2 +- .../project/database_backups/panel.py | 2 +- .../project/database_backups/tables.py | 4 ++-- .../project/database_backups/tests.py | 2 +- .../project/database_backups/views.py | 4 ++-- .../workflows/create_backup.py | 2 +- .../dashboards/project/databases/panel.py | 2 +- .../dashboards/project/databases/tables.py | 2 +- .../dashboards/project/databases/tabs.py | 4 ++-- .../dashboards/project/databases/tests.py | 2 +- .../dashboards/project/databases/views.py | 6 ++--- .../databases/workflows/create_instance.py | 4 ++-- .../dashboards/project/firewalls/forms.py | 4 ++-- .../dashboards/project/firewalls/panel.py | 4 ++-- .../dashboards/project/firewalls/tables.py | 4 ++-- .../dashboards/project/firewalls/tabs.py | 4 ++-- .../dashboards/project/firewalls/tests.py | 4 ++-- .../dashboards/project/firewalls/views.py | 4 ++-- .../dashboards/project/firewalls/workflows.py | 2 +- .../images_and_snapshots/images/forms.py | 4 ++-- .../images_and_snapshots/images/tables.py | 10 ++++----- .../images_and_snapshots/images/tabs.py | 3 +-- .../images_and_snapshots/images/tests.py | 4 ++-- .../images_and_snapshots/images/views.py | 6 ++--- .../project/images_and_snapshots/panel.py | 2 +- .../images_and_snapshots/snapshots/forms.py | 4 ++-- .../images_and_snapshots/snapshots/tests.py | 2 +- .../images_and_snapshots/snapshots/views.py | 6 ++--- .../project/images_and_snapshots/tests.py | 2 +- .../project/images_and_snapshots/utils.py | 2 +- .../project/images_and_snapshots/views.py | 4 ++-- .../volume_snapshots/tables.py | 6 ++--- .../volume_snapshots/tabs.py | 4 ++-- .../volume_snapshots/tests.py | 2 +- .../dashboards/project/instances/forms.py | 4 ++-- .../dashboards/project/instances/panel.py | 2 +- .../dashboards/project/instances/tables.py | 5 ++--- .../dashboards/project/instances/tabs.py | 4 ++-- .../dashboards/project/instances/tests.py | 6 ++--- .../dashboards/project/instances/views.py | 8 +++---- .../instances/workflows/create_instance.py | 6 ++--- .../instances/workflows/resize_instance.py | 2 +- .../instances/workflows/update_instance.py | 2 +- .../dashboards/project/loadbalancers/forms.py | 4 ++-- .../dashboards/project/loadbalancers/panel.py | 4 ++-- .../project/loadbalancers/tables.py | 4 ++-- .../dashboards/project/loadbalancers/tabs.py | 2 +- .../dashboards/project/loadbalancers/tests.py | 4 ++-- .../dashboards/project/loadbalancers/views.py | 4 ++-- .../project/loadbalancers/workflows.py | 2 +- .../network_topology/instances/tables.py | 2 +- .../project/network_topology/panel.py | 2 +- .../project/network_topology/ports/tables.py | 2 +- .../network_topology/routers/tables.py | 2 +- .../project/network_topology/views.py | 6 ++--- .../dashboards/project/networks/forms.py | 4 ++-- .../dashboards/project/networks/panel.py | 2 +- .../project/networks/ports/forms.py | 4 ++-- .../project/networks/ports/tables.py | 4 ++-- .../dashboards/project/networks/ports/tabs.py | 4 ++-- .../project/networks/ports/views.py | 4 ++-- .../project/networks/subnets/tables.py | 6 ++--- .../project/networks/subnets/tabs.py | 4 ++-- .../project/networks/subnets/views.py | 4 ++-- .../project/networks/subnets/workflows.py | 4 ++-- .../dashboards/project/networks/tables.py | 4 ++-- .../dashboards/project/networks/tests.py | 4 ++-- .../dashboards/project/networks/views.py | 4 ++-- .../dashboards/project/networks/workflows.py | 4 ++-- .../dashboards/project/overview/panel.py | 2 +- .../dashboards/project/overview/tests.py | 2 +- .../dashboards/project/overview/views.py | 2 +- .../routers/extensions/routerrules/forms.py | 4 ++-- .../routers/extensions/routerrules/tables.py | 4 ++-- .../routers/extensions/routerrules/tabs.py | 4 ++-- .../routers/extensions/routerrules/views.py | 4 ++-- .../dashboards/project/routers/forms.py | 4 ++-- .../dashboards/project/routers/panel.py | 2 +- .../dashboards/project/routers/ports/forms.py | 4 ++-- .../project/routers/ports/tables.py | 4 ++-- .../dashboards/project/routers/ports/tabs.py | 4 ++-- .../dashboards/project/routers/ports/views.py | 4 ++-- .../dashboards/project/routers/tables.py | 4 ++-- .../dashboards/project/routers/tabs.py | 3 +-- .../dashboards/project/routers/tests.py | 2 +- .../dashboards/project/routers/views.py | 6 ++--- .../dashboards/project/stacks/forms.py | 2 +- .../dashboards/project/stacks/mappings.py | 2 +- .../dashboards/project/stacks/panel.py | 2 +- .../dashboards/project/stacks/tables.py | 2 +- .../dashboards/project/stacks/tabs.py | 2 +- .../dashboards/project/stacks/tests.py | 2 +- .../dashboards/project/stacks/views.py | 6 ++--- .../dashboards/project/volumes/forms.py | 6 ++--- .../dashboards/project/volumes/panel.py | 2 +- .../dashboards/project/volumes/tables.py | 4 ++-- .../dashboards/project/volumes/tabs.py | 3 +-- .../dashboards/project/volumes/tests.py | 4 ++-- .../dashboards/project/volumes/views.py | 8 +++---- .../dashboards/project/vpn/panel.py | 4 ++-- .../dashboards/project/vpn/tables.py | 2 +- .../dashboards/project/vpn/tabs.py | 4 ++-- .../dashboards/project/vpn/tests.py | 4 ++-- .../dashboards/project/vpn/views.py | 2 +- .../dashboards/project/vpn/workflows.py | 2 +- .../dashboards/router/dashboard.py | 2 +- .../dashboards/router/nexus1000v/forms.py | 4 ++-- .../dashboards/router/nexus1000v/panel.py | 2 +- .../dashboards/router/nexus1000v/tables.py | 4 ++-- .../dashboards/router/nexus1000v/tabs.py | 2 +- .../dashboards/router/nexus1000v/tests.py | 2 +- .../dashboards/router/nexus1000v/views.py | 2 +- .../dashboards/settings/dashboard.py | 2 +- .../dashboards/settings/password/forms.py | 4 ++-- .../dashboards/settings/password/panel.py | 2 +- .../dashboards/settings/password/tests.py | 2 +- .../dashboards/settings/password/views.py | 2 +- .../dashboards/settings/user/forms.py | 4 ++-- .../dashboards/settings/user/panel.py | 2 +- .../dashboards/settings/user/tests.py | 4 ++-- .../dashboards/settings/user/views.py | 2 +- .../openstack/common/fileutils.py | 2 +- .../openstack/common/policy.py | 2 +- openstack_dashboard/policy.py | 2 +- openstack_dashboard/settings.py | 2 +- .../test/api_tests/glance_tests.py | 2 +- .../test/api_tests/nova_tests.py | 2 +- openstack_dashboard/test/helpers.py | 2 +- .../test/test_data/keystone_data.py | 2 +- openstack_dashboard/test/tests/error_pages.py | 2 +- openstack_dashboard/urls.py | 2 +- openstack_dashboard/usage/base.py | 5 ++--- openstack_dashboard/usage/quotas.py | 4 ++-- openstack_dashboard/usage/tables.py | 2 +- tox.ini | 18 +++++++++++++++ 282 files changed, 497 insertions(+), 472 deletions(-) diff --git a/HACKING.rst b/HACKING.rst index 8d394d6514..b413c8a23f 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -3,7 +3,27 @@ Horizon Style Commandments - Step 1: Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ -- Step 2: Read on +- Step 2: The following names can be imported directly, without triggering the + "H302: import only modules" flake8 warning:: + + collections.defaultdict, + django.conf.settings, + django.core.urlresolvers.reverse, + django.core.urlresolvers.reverse_lazy, + django.template.loader.render_to_string, + django.utils.datastructures.SortedDict, + django.utils.encoding.force_unicode, + django.utils.html.conditional_escape, + django.utils.html.escape, + django.utils.http.urlencode, + django.utils.safestring.mark_safe, + django.utils.translation.pgettext_lazy, + django.utils.translation.ugettext_lazy, + django.utils.translation.ungettext_lazy, + operator.attrgetter, + StringIO.StringIO + +- Step 3: Read on Horizon Specific Commandments ----------------------------- diff --git a/horizon/base.py b/horizon/base.py index 803c1651a9..e7138d8a5a 100644 --- a/horizon/base.py +++ b/horizon/base.py @@ -28,17 +28,17 @@ import inspect import logging import os -from django.conf import settings # noqa +from django.conf import settings from django.conf.urls import include # noqa from django.conf.urls import patterns # noqa from django.conf.urls import url # noqa from django.core.exceptions import ImproperlyConfigured # noqa -from django.core.urlresolvers import reverse # noqa -from django.utils.datastructures import SortedDict # noqa +from django.core.urlresolvers import reverse +from django.utils.datastructures import SortedDict from django.utils.functional import SimpleLazyObject # noqa from django.utils.importlib import import_module # noqa from django.utils.module_loading import module_has_submodule # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import conf from horizon.decorators import _current_component # noqa diff --git a/horizon/browsers/base.py b/horizon/browsers/base.py index 362f162b10..37dcf79a7b 100644 --- a/horizon/browsers/base.py +++ b/horizon/browsers/base.py @@ -15,7 +15,7 @@ # under the License. from django import template -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon.browsers.breadcrumb import Breadcrumb # noqa from horizon.tables import DataTable # noqa diff --git a/horizon/browsers/views.py b/horizon/browsers/views.py index 84daa56957..e10a51fab5 100644 --- a/horizon/browsers/views.py +++ b/horizon/browsers/views.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon.tables import MultiTableView # noqa from horizon.utils import memoized diff --git a/horizon/conf/default.py b/horizon/conf/default.py index 36d8f8a8b0..8a76d20538 100644 --- a/horizon/conf/default.py +++ b/horizon/conf/default.py @@ -10,8 +10,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ # Default configuration dictionary. Do not mutate. HORIZON_CONFIG = { diff --git a/horizon/decorators.py b/horizon/decorators.py index bd5ff4ef26..a33b8fdd36 100644 --- a/horizon/decorators.py +++ b/horizon/decorators.py @@ -24,7 +24,7 @@ General-purpose decorators for use with Horizon. import functools from django.utils.decorators import available_attrs # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ def _current_component(view_func, dashboard=None, panel=None): diff --git a/horizon/exceptions.py b/horizon/exceptions.py index 4430e012f9..ea1b54335b 100644 --- a/horizon/exceptions.py +++ b/horizon/exceptions.py @@ -25,7 +25,7 @@ import sys from django.contrib.auth import logout # noqa from django.core.management import color_style # noqa from django.http import HttpRequest # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.debug import CLEANSED_SUBSTITUTE # noqa from django.views.debug import SafeExceptionReporterFilter # noqa diff --git a/horizon/loaders.py b/horizon/loaders.py index 71eaa9ce0d..f7996ef211 100644 --- a/horizon/loaders.py +++ b/horizon/loaders.py @@ -16,7 +16,7 @@ Wrapper for loading templates from "templates" directories in panel modules. import os -from django.conf import settings # noqa +from django.conf import settings from django.template.base import TemplateDoesNotExist # noqa from django.template.loader import BaseLoader # noqa from django.utils._os import safe_join # noqa diff --git a/horizon/middleware.py b/horizon/middleware.py index 5c510045d5..da98aba2a5 100644 --- a/horizon/middleware.py +++ b/horizon/middleware.py @@ -25,7 +25,7 @@ import json import logging import time -from django.conf import settings # noqa +from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME # noqa from django.contrib.auth.views import redirect_to_login # noqa from django.contrib import messages as django_messages @@ -34,7 +34,7 @@ from django.http import HttpResponseRedirect # noqa from django import shortcuts from django.utils.encoding import iri_to_uri # noqa from django.utils import timezone -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon.utils import functions as utils diff --git a/horizon/site_urls.py b/horizon/site_urls.py index c16b70838f..36a40a244c 100644 --- a/horizon/site_urls.py +++ b/horizon/site_urls.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa +from django.conf import settings from django.conf.urls import include # noqa from django.conf.urls import patterns # noqa from django.conf.urls import url # noqa diff --git a/horizon/tables/actions.py b/horizon/tables/actions.py index 8ba2572261..e2e033d2cb 100644 --- a/horizon/tables/actions.py +++ b/horizon/tables/actions.py @@ -14,16 +14,16 @@ # License for the specific language governing permissions and limitations # under the License. -from collections import defaultdict # noqa +from collections import defaultdict import logging import new -from django.conf import settings # noqa +from django.conf import settings from django.core import urlresolvers from django import shortcuts from django.utils.functional import Promise # noqa -from django.utils.translation import pgettext_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import pgettext_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import messages diff --git a/horizon/tables/base.py b/horizon/tables/base.py index 3ac8e93e7b..c99b45872d 100644 --- a/horizon/tables/base.py +++ b/horizon/tables/base.py @@ -18,7 +18,7 @@ import collections import copy import json import logging -from operator import attrgetter # noqa +from operator import attrgetter import sys from django.core import exceptions as core_exceptions @@ -27,14 +27,14 @@ from django import forms from django.http import HttpResponse # noqa from django import template from django.template.defaultfilters import truncatechars # noqa -from django.template.loader import render_to_string # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.html import escape # noqa +from django.template.loader import render_to_string +from django.utils.datastructures import SortedDict +from django.utils.html import escape from django.utils import http -from django.utils.http import urlencode # noqa -from django.utils.safestring import mark_safe # noqa +from django.utils.http import urlencode +from django.utils.safestring import mark_safe from django.utils import termcolors -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import conf from horizon import exceptions diff --git a/horizon/templatetags/branding.py b/horizon/templatetags/branding.py index d84d4a62a8..9174730a80 100644 --- a/horizon/templatetags/branding.py +++ b/horizon/templatetags/branding.py @@ -22,10 +22,10 @@ Template tags for customizing Horizon. """ -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from django import template -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ register = template.Library() diff --git a/horizon/templatetags/horizon.py b/horizon/templatetags/horizon.py index d1ffae3bb2..b7414e3de6 100644 --- a/horizon/templatetags/horizon.py +++ b/horizon/templatetags/horizon.py @@ -17,9 +17,9 @@ from __future__ import absolute_import from django import template -from django.utils.datastructures import SortedDict # noqa -from django.utils.encoding import force_unicode # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.datastructures import SortedDict +from django.utils.encoding import force_unicode +from django.utils.translation import ugettext_lazy as _ from horizon.base import Horizon # noqa from horizon import conf diff --git a/horizon/test/tests/base.py b/horizon/test/tests/base.py index bff4a5c6c5..3ddc990c53 100644 --- a/horizon/test/tests/base.py +++ b/horizon/test/tests/base.py @@ -19,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa +from django.conf import settings from django.contrib.auth.models import User # noqa from django.core.exceptions import ImproperlyConfigured # noqa from django.core import urlresolvers diff --git a/horizon/test/tests/messages.py b/horizon/test/tests/messages.py index f993710f1d..5d5f254262 100644 --- a/horizon/test/tests/messages.py +++ b/horizon/test/tests/messages.py @@ -17,9 +17,8 @@ import json from django import http -from django.utils.encoding import force_unicode # noqa -from django.utils.safestring import mark_safe # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.encoding import force_unicode +from django.utils.safestring import mark_safe from horizon import messages from horizon import middleware diff --git a/horizon/test/tests/middleware.py b/horizon/test/tests/middleware.py index 2a2ad41a07..e6d701b3f8 100644 --- a/horizon/test/tests/middleware.py +++ b/horizon/test/tests/middleware.py @@ -17,9 +17,8 @@ import time -from django.conf import settings # noqa +from django.conf import settings -from django.http import HttpResponse # noqa from django.http import HttpResponseRedirect # noqa from horizon import exceptions diff --git a/horizon/test/tests/tables.py b/horizon/test/tests/tables.py index 56a0713e35..6369406662 100644 --- a/horizon/test/tests/tables.py +++ b/horizon/test/tests/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import forms from django import http from django import shortcuts diff --git a/horizon/test/tests/templatetags.py b/horizon/test/tests/templatetags.py index e389bd0b2e..81812d9001 100644 --- a/horizon/test/tests/templatetags.py +++ b/horizon/test/tests/templatetags.py @@ -20,7 +20,7 @@ import re -from django.conf import settings # noqa +from django.conf import settings from django.template import Context # noqa from django.template import Template # noqa from django.utils.text import normalize_newlines # noqa diff --git a/horizon/utils/fields.py b/horizon/utils/fields.py index d800e89e47..5ecacb1b66 100644 --- a/horizon/utils/fields.py +++ b/horizon/utils/fields.py @@ -13,11 +13,11 @@ from django.core.exceptions import ValidationError # noqa from django.forms import forms from django.forms import widgets -from django.utils.encoding import force_unicode # noqa +from django.utils.encoding import force_unicode from django.utils.functional import Promise # noqa -from django.utils.html import conditional_escape # noqa -from django.utils.html import escape # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.html import conditional_escape +from django.utils.html import escape +from django.utils.translation import ugettext_lazy as _ import netaddr import re diff --git a/horizon/utils/functions.py b/horizon/utils/functions.py index c71733ec10..266f9597e3 100644 --- a/horizon/utils/functions.py +++ b/horizon/utils/functions.py @@ -12,10 +12,10 @@ import math -from django.conf import settings # noqa +from django.conf import settings from django.contrib.auth import logout # noqa from django import http -from django.utils.encoding import force_unicode # noqa +from django.utils.encoding import force_unicode from django.utils.functional import lazy # noqa from django.utils import translation diff --git a/horizon/utils/validators.py b/horizon/utils/validators.py index bb7522eb26..8d5576139a 100644 --- a/horizon/utils/validators.py +++ b/horizon/utils/validators.py @@ -15,7 +15,7 @@ # under the License. from django.core.exceptions import ValidationError # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import conf diff --git a/horizon/workflows/base.py b/horizon/workflows/base.py index e32502ced4..5223a695f7 100644 --- a/horizon/workflows/base.py +++ b/horizon/workflows/base.py @@ -25,9 +25,9 @@ from django import template from django.template.defaultfilters import linebreaks # noqa from django.template.defaultfilters import safe # noqa from django.template.defaultfilters import slugify # noqa -from django.utils.encoding import force_unicode # noqa +from django.utils.encoding import force_unicode from django.utils.importlib import import_module # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import base from horizon import exceptions diff --git a/openstack_dashboard/api/base.py b/openstack_dashboard/api/base.py index 3ad9cfb091..5a9cb3f4a6 100644 --- a/openstack_dashboard/api/base.py +++ b/openstack_dashboard/api/base.py @@ -21,7 +21,7 @@ from collections import Sequence # noqa import logging -from django.conf import settings # noqa +from django.conf import settings from horizon import exceptions diff --git a/openstack_dashboard/api/ceilometer.py b/openstack_dashboard/api/ceilometer.py index 967765a9ef..834513d121 100644 --- a/openstack_dashboard/api/ceilometer.py +++ b/openstack_dashboard/api/ceilometer.py @@ -16,9 +16,9 @@ import logging import threading from ceilometerclient import client as ceilometer_client -from django.conf import settings # noqa +from django.conf import settings from django.utils import datastructures -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/openstack_dashboard/api/cinder.py b/openstack_dashboard/api/cinder.py index 432b1ac5bf..64295475d5 100644 --- a/openstack_dashboard/api/cinder.py +++ b/openstack_dashboard/api/cinder.py @@ -24,8 +24,8 @@ from __future__ import absolute_import import logging -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ from cinderclient.v1 import client as cinder_client from cinderclient.v1.contrib import list_extensions as cinder_list_extensions diff --git a/openstack_dashboard/api/glance.py b/openstack_dashboard/api/glance.py index f1b28e7cc4..844fc0bb03 100644 --- a/openstack_dashboard/api/glance.py +++ b/openstack_dashboard/api/glance.py @@ -25,7 +25,7 @@ import logging import thread import urlparse -from django.conf import settings # noqa +from django.conf import settings import glanceclient as glance_client diff --git a/openstack_dashboard/api/heat.py b/openstack_dashboard/api/heat.py index 98b90907f9..a8ab195adb 100644 --- a/openstack_dashboard/api/heat.py +++ b/openstack_dashboard/api/heat.py @@ -14,7 +14,7 @@ import logging -from django.conf import settings # noqa +from django.conf import settings from heatclient import client as heat_client from openstack_dashboard.api import base diff --git a/openstack_dashboard/api/keystone.py b/openstack_dashboard/api/keystone.py index 8becf8e90c..50c197a8f1 100644 --- a/openstack_dashboard/api/keystone.py +++ b/openstack_dashboard/api/keystone.py @@ -22,8 +22,8 @@ import logging import urlparse -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ from keystoneclient import exceptions as keystone_exceptions diff --git a/openstack_dashboard/api/network.py b/openstack_dashboard/api/network.py index 7ab233c5cd..c1c497fb82 100644 --- a/openstack_dashboard/api/network.py +++ b/openstack_dashboard/api/network.py @@ -21,8 +21,6 @@ introduced to abstract the differences between them for seamless consumption by different dashboard implementations. """ -from django.conf import settings # noqa - from openstack_dashboard.api import base from openstack_dashboard.api import neutron from openstack_dashboard.api import nova diff --git a/openstack_dashboard/api/neutron.py b/openstack_dashboard/api/neutron.py index 39f0877990..ca600f0a54 100644 --- a/openstack_dashboard/api/neutron.py +++ b/openstack_dashboard/api/neutron.py @@ -23,9 +23,9 @@ from __future__ import absolute_import import logging -from django.conf import settings # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon.utils.memoized import memoized # noqa diff --git a/openstack_dashboard/api/nova.py b/openstack_dashboard/api/nova.py index 0451a4861a..e30e56fc69 100644 --- a/openstack_dashboard/api/nova.py +++ b/openstack_dashboard/api/nova.py @@ -24,9 +24,9 @@ from __future__ import absolute_import import logging -from django.conf import settings # noqa +from django.conf import settings from django.utils.functional import cached_property # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from novaclient.v1_1 import client as nova_client from novaclient.v1_1.contrib import list_extensions as nova_list_extensions diff --git a/openstack_dashboard/api/swift.py b/openstack_dashboard/api/swift.py index 7fa86df28e..6f1cce2c6a 100644 --- a/openstack_dashboard/api/swift.py +++ b/openstack_dashboard/api/swift.py @@ -23,8 +23,8 @@ import urllib import swiftclient -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/openstack_dashboard/api/trove.py b/openstack_dashboard/api/trove.py index 2357d4687d..94801d81cd 100644 --- a/openstack_dashboard/api/trove.py +++ b/openstack_dashboard/api/trove.py @@ -16,7 +16,7 @@ import logging -from django.conf import settings # noqa +from django.conf import settings from troveclient.v1 import client from openstack_dashboard.api import base diff --git a/openstack_dashboard/context_processors.py b/openstack_dashboard/context_processors.py index ae83a1074c..f4e1d8913d 100644 --- a/openstack_dashboard/context_processors.py +++ b/openstack_dashboard/context_processors.py @@ -21,7 +21,7 @@ Context processors used by Horizon. """ -from django.conf import settings # noqa +from django.conf import settings def openstack(request): diff --git a/openstack_dashboard/dashboards/admin/dashboard.py b/openstack_dashboard/dashboards/admin/dashboard.py index bdfc6ef7c5..06c9d9d3a8 100644 --- a/openstack_dashboard/dashboards/admin/dashboard.py +++ b/openstack_dashboard/dashboards/admin/dashboard.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/defaults/panel.py b/openstack_dashboard/dashboards/admin/defaults/panel.py index 4b9130d32c..fd4b0923e2 100644 --- a/openstack_dashboard/dashboards/admin/defaults/panel.py +++ b/openstack_dashboard/dashboards/admin/defaults/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/defaults/tables.py b/openstack_dashboard/dashboards/admin/defaults/tables.py index f1c60dde9b..6cc3633067 100644 --- a/openstack_dashboard/dashboards/admin/defaults/tables.py +++ b/openstack_dashboard/dashboards/admin/defaults/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/defaults/tabs.py b/openstack_dashboard/dashboards/admin/defaults/tabs.py index b00521089c..fb966fd3ea 100644 --- a/openstack_dashboard/dashboards/admin/defaults/tabs.py +++ b/openstack_dashboard/dashboards/admin/defaults/tabs.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/admin/defaults/tests.py b/openstack_dashboard/dashboards/admin/defaults/tests.py index 56e7aa2f64..dc0634dfa2 100644 --- a/openstack_dashboard/dashboards/admin/defaults/tests.py +++ b/openstack_dashboard/dashboards/admin/defaults/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/defaults/views.py b/openstack_dashboard/dashboards/admin/defaults/views.py index 03207c8321..6ef3ab6798 100644 --- a/openstack_dashboard/dashboards/admin/defaults/views.py +++ b/openstack_dashboard/dashboards/admin/defaults/views.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tabs from horizon import workflows diff --git a/openstack_dashboard/dashboards/admin/defaults/workflows.py b/openstack_dashboard/dashboards/admin/defaults/workflows.py index 7840c6a681..59e5b606e4 100644 --- a/openstack_dashboard/dashboards/admin/defaults/workflows.py +++ b/openstack_dashboard/dashboards/admin/defaults/workflows.py @@ -15,7 +15,7 @@ # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/domains/panel.py b/openstack_dashboard/dashboards/admin/domains/panel.py index 4f5deb6a3e..169cc5d090 100644 --- a/openstack_dashboard/dashboards/admin/domains/panel.py +++ b/openstack_dashboard/dashboards/admin/domains/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/domains/tables.py b/openstack_dashboard/dashboards/admin/domains/tables.py index a86cead935..a9e7c88adc 100644 --- a/openstack_dashboard/dashboards/admin/domains/tables.py +++ b/openstack_dashboard/dashboards/admin/domains/tables.py @@ -16,10 +16,10 @@ import logging -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa -from django.utils.http import urlencode # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.core.urlresolvers import reverse +from django.utils.http import urlencode +from django.utils.translation import ugettext_lazy as _ from keystoneclient import exceptions diff --git a/openstack_dashboard/dashboards/admin/domains/tests.py b/openstack_dashboard/dashboards/admin/domains/tests.py index 91f76959af..d9511065a8 100644 --- a/openstack_dashboard/dashboards/admin/domains/tests.py +++ b/openstack_dashboard/dashboards/admin/domains/tests.py @@ -15,7 +15,7 @@ # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IgnoreArg # noqa diff --git a/openstack_dashboard/dashboards/admin/domains/views.py b/openstack_dashboard/dashboards/admin/domains/views.py index fd8853cf28..dca1d2dff7 100644 --- a/openstack_dashboard/dashboards/admin/domains/views.py +++ b/openstack_dashboard/dashboards/admin/domains/views.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/domains/workflows.py b/openstack_dashboard/dashboards/admin/domains/workflows.py index 07062c6cb4..b5f9b14cb6 100644 --- a/openstack_dashboard/dashboards/admin/domains/workflows.py +++ b/openstack_dashboard/dashboards/admin/domains/workflows.py @@ -16,9 +16,9 @@ import logging -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/forms.py b/openstack_dashboard/dashboards/admin/flavors/extras/forms.py index 3a875c56b4..2612f542cc 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/forms.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/forms.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from openstack_dashboard import api diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/tables.py b/openstack_dashboard/dashboards/admin/flavors/extras/tables.py index 88e47741a2..8056dd77ff 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/tables.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/tables.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/tests.py b/openstack_dashboard/dashboards/admin/flavors/extras/tests.py index 1d10f6d8c7..4ad5b829b8 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/tests.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/tests.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/views.py b/openstack_dashboard/dashboards/admin/flavors/extras/views.py index 64f5171228..519075ea71 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/views.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/views.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/flavors/panel.py b/openstack_dashboard/dashboards/admin/flavors/panel.py index 1e14b09b3d..2f769b0299 100644 --- a/openstack_dashboard/dashboards/admin/flavors/panel.py +++ b/openstack_dashboard/dashboards/admin/flavors/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/flavors/tables.py b/openstack_dashboard/dashboards/admin/flavors/tables.py index 72cfec2c1f..5a388eb3f6 100644 --- a/openstack_dashboard/dashboards/admin/flavors/tables.py +++ b/openstack_dashboard/dashboards/admin/flavors/tables.py @@ -18,10 +18,10 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template import defaultfilters as filters -from django.utils.http import urlencode # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.http import urlencode +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/flavors/tests.py b/openstack_dashboard/dashboards/admin/flavors/tests.py index 9f7154065a..04b00c5968 100644 --- a/openstack_dashboard/dashboards/admin/flavors/tests.py +++ b/openstack_dashboard/dashboards/admin/flavors/tests.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/flavors/views.py b/openstack_dashboard/dashboards/admin/flavors/views.py index 6022294dbd..731d3f2272 100644 --- a/openstack_dashboard/dashboards/admin/flavors/views.py +++ b/openstack_dashboard/dashboards/admin/flavors/views.py @@ -18,8 +18,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/flavors/workflows.py b/openstack_dashboard/dashboards/admin/flavors/workflows.py index 03ab268f01..22bbd42724 100644 --- a/openstack_dashboard/dashboards/admin/flavors/workflows.py +++ b/openstack_dashboard/dashboards/admin/flavors/workflows.py @@ -19,7 +19,7 @@ # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/groups/forms.py b/openstack_dashboard/dashboards/admin/groups/forms.py index 19b58641cb..bbc36d9214 100644 --- a/openstack_dashboard/dashboards/admin/groups/forms.py +++ b/openstack_dashboard/dashboards/admin/groups/forms.py @@ -16,7 +16,7 @@ import logging -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/groups/panel.py b/openstack_dashboard/dashboards/admin/groups/panel.py index 2a5bb92b2d..08cd0aca2e 100644 --- a/openstack_dashboard/dashboards/admin/groups/panel.py +++ b/openstack_dashboard/dashboards/admin/groups/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/groups/tables.py b/openstack_dashboard/dashboards/admin/groups/tables.py index ee33e45ee8..1f32da2c2b 100644 --- a/openstack_dashboard/dashboards/admin/groups/tables.py +++ b/openstack_dashboard/dashboards/admin/groups/tables.py @@ -16,9 +16,9 @@ import logging -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template import defaultfilters -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/groups/tests.py b/openstack_dashboard/dashboards/admin/groups/tests.py index f53ffaccdd..52de1fcf37 100644 --- a/openstack_dashboard/dashboards/admin/groups/tests.py +++ b/openstack_dashboard/dashboards/admin/groups/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IgnoreArg # noqa diff --git a/openstack_dashboard/dashboards/admin/groups/views.py b/openstack_dashboard/dashboards/admin/groups/views.py index 2062e668d3..5697c68f1d 100644 --- a/openstack_dashboard/dashboards/admin/groups/views.py +++ b/openstack_dashboard/dashboards/admin/groups/views.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/hypervisors/panel.py b/openstack_dashboard/dashboards/admin/hypervisors/panel.py index aa6cae5e2e..156702ef6f 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/panel.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon from openstack_dashboard.dashboards.admin import dashboard diff --git a/openstack_dashboard/dashboards/admin/hypervisors/tables.py b/openstack_dashboard/dashboards/admin/hypervisors/tables.py index 1d2bbcfa40..b43aa6e7d4 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/tables.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from horizon.templatetags import sizeformat diff --git a/openstack_dashboard/dashboards/admin/hypervisors/tests.py b/openstack_dashboard/dashboards/admin/hypervisors/tests.py index aca578bd71..56eb8ec970 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/tests.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/hypervisors/views.py b/openstack_dashboard/dashboards/admin/hypervisors/views.py index a43b9f30f8..52fd1d9f7d 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/views.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/views.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/images/panel.py b/openstack_dashboard/dashboards/admin/images/panel.py index 0ff71af67a..aa8d354d6e 100644 --- a/openstack_dashboard/dashboards/admin/images/panel.py +++ b/openstack_dashboard/dashboards/admin/images/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/images/tables.py b/openstack_dashboard/dashboards/admin/images/tables.py index aee78c0991..fb6b28e017 100644 --- a/openstack_dashboard/dashboards/admin/images/tables.py +++ b/openstack_dashboard/dashboards/admin/images/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/images/tests.py b/openstack_dashboard/dashboards/admin/images/tests.py index 1c37ac78b3..9aef08dea6 100644 --- a/openstack_dashboard/dashboards/admin/images/tests.py +++ b/openstack_dashboard/dashboards/admin/images/tests.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from django import http from django.test.utils import override_settings # noqa diff --git a/openstack_dashboard/dashboards/admin/images/views.py b/openstack_dashboard/dashboards/admin/images/views.py index 456c7c2e19..9602b4ee27 100644 --- a/openstack_dashboard/dashboards/admin/images/views.py +++ b/openstack_dashboard/dashboards/admin/images/views.py @@ -18,8 +18,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/info/panel.py b/openstack_dashboard/dashboards/admin/info/panel.py index 6506578601..b2c2322496 100644 --- a/openstack_dashboard/dashboards/admin/info/panel.py +++ b/openstack_dashboard/dashboards/admin/info/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/info/tables.py b/openstack_dashboard/dashboards/admin/info/tables.py index ad6755f042..953c9a3a3e 100644 --- a/openstack_dashboard/dashboards/admin/info/tables.py +++ b/openstack_dashboard/dashboards/admin/info/tables.py @@ -12,7 +12,7 @@ from django import template from django.template import defaultfilters as filters -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from horizon.utils import filters as utils_filters diff --git a/openstack_dashboard/dashboards/admin/info/tabs.py b/openstack_dashboard/dashboards/admin/info/tabs.py index 5ebf257d04..0595f91450 100644 --- a/openstack_dashboard/dashboards/admin/info/tabs.py +++ b/openstack_dashboard/dashboards/admin/info/tabs.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/admin/info/tests.py b/openstack_dashboard/dashboards/admin/info/tests.py index 46cc43b64d..b5bcb56bde 100644 --- a/openstack_dashboard/dashboards/admin/info/tests.py +++ b/openstack_dashboard/dashboards/admin/info/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/instances/forms.py b/openstack_dashboard/dashboards/admin/instances/forms.py index 4098a048ca..0c6d2b9bb5 100644 --- a/openstack_dashboard/dashboards/admin/instances/forms.py +++ b/openstack_dashboard/dashboards/admin/instances/forms.py @@ -15,8 +15,8 @@ # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/instances/panel.py b/openstack_dashboard/dashboards/admin/instances/panel.py index 9e43252132..3e4fd51103 100644 --- a/openstack_dashboard/dashboards/admin/instances/panel.py +++ b/openstack_dashboard/dashboards/admin/instances/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/instances/tables.py b/openstack_dashboard/dashboards/admin/instances/tables.py index 535c7606fe..da25da7cd0 100644 --- a/openstack_dashboard/dashboards/admin/instances/tables.py +++ b/openstack_dashboard/dashboards/admin/instances/tables.py @@ -15,11 +15,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.template.defaultfilters import timesince # noqa from django.template.defaultfilters import title # noqa -from django.utils.http import urlencode # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from horizon.utils import filters diff --git a/openstack_dashboard/dashboards/admin/instances/tests.py b/openstack_dashboard/dashboards/admin/instances/tests.py index 2e20c4cb40..c8bf84fe3e 100644 --- a/openstack_dashboard/dashboards/admin/instances/tests.py +++ b/openstack_dashboard/dashboards/admin/instances/tests.py @@ -16,9 +16,9 @@ import uuid -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http -from django.utils.datastructures import SortedDict # noqa +from django.utils.datastructures import SortedDict from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/instances/views.py b/openstack_dashboard/dashboards/admin/instances/views.py index 3b3712de2b..030f27f38f 100644 --- a/openstack_dashboard/dashboards/admin/instances/views.py +++ b/openstack_dashboard/dashboards/admin/instances/views.py @@ -19,10 +19,10 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/metering/panel.py b/openstack_dashboard/dashboards/admin/metering/panel.py index 24af3845f5..07d5c8f5ca 100644 --- a/openstack_dashboard/dashboards/admin/metering/panel.py +++ b/openstack_dashboard/dashboards/admin/metering/panel.py @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon from openstack_dashboard.dashboards.admin import dashboard diff --git a/openstack_dashboard/dashboards/admin/metering/tabs.py b/openstack_dashboard/dashboards/admin/metering/tabs.py index 0156fa829f..a532d39fe4 100644 --- a/openstack_dashboard/dashboards/admin/metering/tabs.py +++ b/openstack_dashboard/dashboards/admin/metering/tabs.py @@ -13,7 +13,7 @@ # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tabs from openstack_dashboard import api diff --git a/openstack_dashboard/dashboards/admin/metering/tests.py b/openstack_dashboard/dashboards/admin/metering/tests.py index 8f297244cc..9cfceb2af6 100644 --- a/openstack_dashboard/dashboards/admin/metering/tests.py +++ b/openstack_dashboard/dashboards/admin/metering/tests.py @@ -14,8 +14,8 @@ import json import uuid -from django.core.urlresolvers import reverse # noqa -from django import http # noqa +from django.core.urlresolvers import reverse +from django import http from mox import IsA # noqa from openstack_dashboard import api diff --git a/openstack_dashboard/dashboards/admin/metering/views.py b/openstack_dashboard/dashboards/admin/metering/views.py index e79ff781f7..bbb49f8e9f 100644 --- a/openstack_dashboard/dashboards/admin/metering/views.py +++ b/openstack_dashboard/dashboards/admin/metering/views.py @@ -18,7 +18,7 @@ from datetime import timedelta # noqa import json from django.http import HttpResponse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/admin/networks/forms.py b/openstack_dashboard/dashboards/admin/networks/forms.py index fa45e490e3..b4f262a049 100644 --- a/openstack_dashboard/dashboards/admin/networks/forms.py +++ b/openstack_dashboard/dashboards/admin/networks/forms.py @@ -16,9 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils import datastructures # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/networks/panel.py b/openstack_dashboard/dashboards/admin/networks/panel.py index de8aff8dbf..22774c6c69 100644 --- a/openstack_dashboard/dashboards/admin/networks/panel.py +++ b/openstack_dashboard/dashboards/admin/networks/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/networks/ports/forms.py b/openstack_dashboard/dashboards/admin/networks/ports/forms.py index 844f06d85e..b0372131f5 100644 --- a/openstack_dashboard/dashboards/admin/networks/ports/forms.py +++ b/openstack_dashboard/dashboards/admin/networks/ports/forms.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/networks/ports/tables.py b/openstack_dashboard/dashboards/admin/networks/ports/tables.py index b740135a81..6f3c16e8a4 100644 --- a/openstack_dashboard/dashboards/admin/networks/ports/tables.py +++ b/openstack_dashboard/dashboards/admin/networks/ports/tables.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/networks/ports/tabs.py b/openstack_dashboard/dashboards/admin/networks/ports/tabs.py index 665889d5ff..ec846b7da2 100644 --- a/openstack_dashboard/dashboards/admin/networks/ports/tabs.py +++ b/openstack_dashboard/dashboards/admin/networks/ports/tabs.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/admin/networks/ports/views.py b/openstack_dashboard/dashboards/admin/networks/ports/views.py index 8407c9b801..2b80b153a5 100644 --- a/openstack_dashboard/dashboards/admin/networks/ports/views.py +++ b/openstack_dashboard/dashboards/admin/networks/ports/views.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/networks/subnets/tables.py b/openstack_dashboard/dashboards/admin/networks/subnets/tables.py index 0ea8cdd77a..099d667ed5 100644 --- a/openstack_dashboard/dashboards/admin/networks/subnets/tables.py +++ b/openstack_dashboard/dashboards/admin/networks/subnets/tables.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/networks/subnets/workflows.py b/openstack_dashboard/dashboards/admin/networks/subnets/workflows.py index 55baaa668b..4775fde50a 100644 --- a/openstack_dashboard/dashboards/admin/networks/subnets/workflows.py +++ b/openstack_dashboard/dashboards/admin/networks/subnets/workflows.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/openstack_dashboard/dashboards/admin/networks/tables.py b/openstack_dashboard/dashboards/admin/networks/tables.py index 982259e40c..a1fcef0be3 100644 --- a/openstack_dashboard/dashboards/admin/networks/tables.py +++ b/openstack_dashboard/dashboards/admin/networks/tables.py @@ -16,9 +16,9 @@ import logging -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template import defaultfilters as filters -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/networks/tests.py b/openstack_dashboard/dashboards/admin/networks/tests.py index bf7b00ef72..409a139dfb 100644 --- a/openstack_dashboard/dashboards/admin/networks/tests.py +++ b/openstack_dashboard/dashboards/admin/networks/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from horizon.workflows import views diff --git a/openstack_dashboard/dashboards/admin/networks/views.py b/openstack_dashboard/dashboards/admin/networks/views.py index faab7282fe..78c8f75ed1 100644 --- a/openstack_dashboard/dashboards/admin/networks/views.py +++ b/openstack_dashboard/dashboards/admin/networks/views.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/overview/panel.py b/openstack_dashboard/dashboards/admin/overview/panel.py index 0028c6943a..ec23757863 100644 --- a/openstack_dashboard/dashboards/admin/overview/panel.py +++ b/openstack_dashboard/dashboards/admin/overview/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/overview/tests.py b/openstack_dashboard/dashboards/admin/overview/tests.py index 43e3dba1aa..2dda328498 100644 --- a/openstack_dashboard/dashboards/admin/overview/tests.py +++ b/openstack_dashboard/dashboards/admin/overview/tests.py @@ -20,7 +20,7 @@ import datetime -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from django.utils import timezone diff --git a/openstack_dashboard/dashboards/admin/overview/views.py b/openstack_dashboard/dashboards/admin/overview/views.py index c9c9e9fc27..1901d211b2 100644 --- a/openstack_dashboard/dashboards/admin/overview/views.py +++ b/openstack_dashboard/dashboards/admin/overview/views.py @@ -18,9 +18,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa +from django.conf import settings from django.template.defaultfilters import floatformat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/openstack_dashboard/dashboards/admin/projects/panel.py b/openstack_dashboard/dashboards/admin/projects/panel.py index e957f693b9..8eb9757d07 100644 --- a/openstack_dashboard/dashboards/admin/projects/panel.py +++ b/openstack_dashboard/dashboards/admin/projects/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/projects/tables.py b/openstack_dashboard/dashboards/admin/projects/tables.py index 5274e9812e..477e09b86e 100644 --- a/openstack_dashboard/dashboards/admin/projects/tables.py +++ b/openstack_dashboard/dashboards/admin/projects/tables.py @@ -11,9 +11,9 @@ # under the License. from django.core.exceptions import ValidationError # noqa -from django.core.urlresolvers import reverse # noqa -from django.utils.http import urlencode # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.http import urlencode +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/projects/tests.py b/openstack_dashboard/dashboards/admin/projects/tests.py index 7880d1556e..75af130710 100644 --- a/openstack_dashboard/dashboards/admin/projects/tests.py +++ b/openstack_dashboard/dashboards/admin/projects/tests.py @@ -19,7 +19,7 @@ import datetime import logging import os -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from django.test.utils import override_settings # noqa from django.utils import timezone diff --git a/openstack_dashboard/dashboards/admin/projects/views.py b/openstack_dashboard/dashboards/admin/projects/views.py index 714dd9b146..d22a3bf046 100644 --- a/openstack_dashboard/dashboards/admin/projects/views.py +++ b/openstack_dashboard/dashboards/admin/projects/views.py @@ -18,8 +18,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/projects/workflows.py b/openstack_dashboard/dashboards/admin/projects/workflows.py index d7e06f2f83..5415d2e8c4 100644 --- a/openstack_dashboard/dashboards/admin/projects/workflows.py +++ b/openstack_dashboard/dashboards/admin/projects/workflows.py @@ -19,9 +19,9 @@ # under the License. -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/roles/forms.py b/openstack_dashboard/dashboards/admin/roles/forms.py index e2651069cd..9827e01d0e 100644 --- a/openstack_dashboard/dashboards/admin/roles/forms.py +++ b/openstack_dashboard/dashboards/admin/roles/forms.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/roles/panel.py b/openstack_dashboard/dashboards/admin/roles/panel.py index 75063dbeb7..0721305bd0 100644 --- a/openstack_dashboard/dashboards/admin/roles/panel.py +++ b/openstack_dashboard/dashboards/admin/roles/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/roles/tables.py b/openstack_dashboard/dashboards/admin/roles/tables.py index ace953d271..65149783f2 100644 --- a/openstack_dashboard/dashboards/admin/roles/tables.py +++ b/openstack_dashboard/dashboards/admin/roles/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/roles/tests.py b/openstack_dashboard/dashboards/admin/roles/tests.py index 7267d65850..bba4e1fc9f 100644 --- a/openstack_dashboard/dashboards/admin/roles/tests.py +++ b/openstack_dashboard/dashboards/admin/roles/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IgnoreArg # noqa diff --git a/openstack_dashboard/dashboards/admin/roles/views.py b/openstack_dashboard/dashboards/admin/roles/views.py index f882b4ea56..23af7e808a 100644 --- a/openstack_dashboard/dashboards/admin/roles/views.py +++ b/openstack_dashboard/dashboards/admin/roles/views.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/routers/extensions/routerrules/tables.py b/openstack_dashboard/dashboards/admin/routers/extensions/routerrules/tables.py index f3bacf0d4c..e1ebcd0b79 100644 --- a/openstack_dashboard/dashboards/admin/routers/extensions/routerrules/tables.py +++ b/openstack_dashboard/dashboards/admin/routers/extensions/routerrules/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/routers/panel.py b/openstack_dashboard/dashboards/admin/routers/panel.py index f8969bfa63..69709363f0 100644 --- a/openstack_dashboard/dashboards/admin/routers/panel.py +++ b/openstack_dashboard/dashboards/admin/routers/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/routers/ports/tables.py b/openstack_dashboard/dashboards/admin/routers/ports/tables.py index dc9d618926..e593774b3f 100644 --- a/openstack_dashboard/dashboards/admin/routers/ports/tables.py +++ b/openstack_dashboard/dashboards/admin/routers/ports/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from openstack_dashboard.dashboards.project.networks.ports \ diff --git a/openstack_dashboard/dashboards/admin/routers/tables.py b/openstack_dashboard/dashboards/admin/routers/tables.py index 7a0fb798ed..6855837439 100644 --- a/openstack_dashboard/dashboards/admin/routers/tables.py +++ b/openstack_dashboard/dashboards/admin/routers/tables.py @@ -15,7 +15,7 @@ # under the License. from django.template.defaultfilters import title # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from openstack_dashboard import api diff --git a/openstack_dashboard/dashboards/admin/routers/tests.py b/openstack_dashboard/dashboards/admin/routers/tests.py index fc64a1ac8b..cd33286cbe 100644 --- a/openstack_dashboard/dashboards/admin/routers/tests.py +++ b/openstack_dashboard/dashboards/admin/routers/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/routers/views.py b/openstack_dashboard/dashboards/admin/routers/views.py index d1331cadba..7d5e60c588 100644 --- a/openstack_dashboard/dashboards/admin/routers/views.py +++ b/openstack_dashboard/dashboards/admin/routers/views.py @@ -18,8 +18,8 @@ Views for managing Neutron Routers. """ -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from openstack_dashboard import api diff --git a/openstack_dashboard/dashboards/admin/users/forms.py b/openstack_dashboard/dashboards/admin/users/forms.py index 8ac8d9d819..433cc66867 100644 --- a/openstack_dashboard/dashboards/admin/users/forms.py +++ b/openstack_dashboard/dashboards/admin/users/forms.py @@ -22,7 +22,7 @@ import logging from django.forms import ValidationError # noqa from django import http -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.decorators.debug import sensitive_variables # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/admin/users/panel.py b/openstack_dashboard/dashboards/admin/users/panel.py index 797556cab0..a813fa4ac2 100644 --- a/openstack_dashboard/dashboards/admin/users/panel.py +++ b/openstack_dashboard/dashboards/admin/users/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/users/tables.py b/openstack_dashboard/dashboards/admin/users/tables.py index 429631c129..5bc486eadc 100644 --- a/openstack_dashboard/dashboards/admin/users/tables.py +++ b/openstack_dashboard/dashboards/admin/users/tables.py @@ -11,7 +11,7 @@ # under the License. from django.template import defaultfilters -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import messages from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/users/tests.py b/openstack_dashboard/dashboards/admin/users/tests.py index a217f71ebd..c741aab486 100644 --- a/openstack_dashboard/dashboards/admin/users/tests.py +++ b/openstack_dashboard/dashboards/admin/users/tests.py @@ -20,7 +20,7 @@ from socket import timeout as socket_timeout # noqa -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IgnoreArg # noqa diff --git a/openstack_dashboard/dashboards/admin/users/views.py b/openstack_dashboard/dashboards/admin/users/views.py index d120fa9aed..b2f6ef2593 100644 --- a/openstack_dashboard/dashboards/admin/users/views.py +++ b/openstack_dashboard/dashboards/admin/users/views.py @@ -20,10 +20,10 @@ import operator -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django.utils.decorators import method_decorator # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.decorators.debug import sensitive_post_parameters # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/admin/volumes/forms.py b/openstack_dashboard/dashboards/admin/volumes/forms.py index 701238b127..5b6b7c4377 100644 --- a/openstack_dashboard/dashboards/admin/volumes/forms.py +++ b/openstack_dashboard/dashboards/admin/volumes/forms.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/admin/volumes/panel.py b/openstack_dashboard/dashboards/admin/volumes/panel.py index 71281f11c0..8a80057751 100644 --- a/openstack_dashboard/dashboards/admin/volumes/panel.py +++ b/openstack_dashboard/dashboards/admin/volumes/panel.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/admin/volumes/tables.py b/openstack_dashboard/dashboards/admin/volumes/tables.py index c68314a0ad..8518fe26fa 100644 --- a/openstack_dashboard/dashboards/admin/volumes/tables.py +++ b/openstack_dashboard/dashboards/admin/volumes/tables.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from openstack_dashboard.api import cinder diff --git a/openstack_dashboard/dashboards/admin/volumes/tests.py b/openstack_dashboard/dashboards/admin/volumes/tests.py index a69da85464..67851868eb 100644 --- a/openstack_dashboard/dashboards/admin/volumes/tests.py +++ b/openstack_dashboard/dashboards/admin/volumes/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/volumes/views.py b/openstack_dashboard/dashboards/admin/volumes/views.py index 497b720a52..d516e13aa0 100644 --- a/openstack_dashboard/dashboards/admin/volumes/views.py +++ b/openstack_dashboard/dashboards/admin/volumes/views.py @@ -18,9 +18,9 @@ Admin views for managing volumes. """ -from django.core.urlresolvers import reverse # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/access_and_security/api_access/tables.py b/openstack_dashboard/dashboards/project/access_and_security/api_access/tables.py index ebbe989687..666e24f3f6 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/api_access/tables.py +++ b/openstack_dashboard/dashboards/project/access_and_security/api_access/tables.py @@ -15,7 +15,7 @@ # under the License. from django.template.defaultfilters import title # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/project/access_and_security/api_access/tests.py b/openstack_dashboard/dashboards/project/access_and_security/api_access/tests.py index 79415a90ab..a2bafb8960 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/api_access/tests.py +++ b/openstack_dashboard/dashboards/project/access_and_security/api_access/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.http import HttpRequest # noqa from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/access_and_security/api_access/views.py b/openstack_dashboard/dashboards/project/access_and_security/api_access/views.py index 3641a72f29..091a658721 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/api_access/views.py +++ b/openstack_dashboard/dashboards/project/access_and_security/api_access/views.py @@ -22,7 +22,7 @@ import zipfile from django import http from django import shortcuts from django.template.loader import render_to_string # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import messages diff --git a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/forms.py b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/forms.py index ae2789faa6..b34c155c26 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/forms.py +++ b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/forms.py @@ -19,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py index d943999e3b..76a1cef6cb 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py +++ b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py @@ -19,9 +19,9 @@ import logging from django.core import urlresolvers from django import shortcuts -from django.utils.http import urlencode # noqa +from django.utils.http import urlencode from django.utils.translation import string_concat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import messages diff --git a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tests.py b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tests.py index 83129f2835..1477de8d42 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tests.py +++ b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tests.py @@ -19,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from django.test.utils import override_settings # noqa diff --git a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/views.py b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/views.py index 728560fbaa..58882ed33b 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/views.py +++ b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/views.py @@ -23,8 +23,8 @@ Views for managing floating IPs. """ -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py index 9e60b7a991..d8ae6b93a2 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py +++ b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py @@ -15,8 +15,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/access_and_security/keypairs/forms.py b/openstack_dashboard/dashboards/project/access_and_security/keypairs/forms.py index a749b159b1..6e4cd6798c 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/keypairs/forms.py +++ b/openstack_dashboard/dashboards/project/access_and_security/keypairs/forms.py @@ -21,7 +21,7 @@ import re from django.core import validators -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py b/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py index 9820ce867a..c84ffb4ad8 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py +++ b/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py @@ -15,7 +15,7 @@ # under the License. from django.utils.translation import string_concat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/project/access_and_security/keypairs/tests.py b/openstack_dashboard/dashboards/project/access_and_security/keypairs/tests.py index 8ce806a95f..693a494824 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/keypairs/tests.py +++ b/openstack_dashboard/dashboards/project/access_and_security/keypairs/tests.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py b/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py index 6bc4b82ed2..9c0562bd6d 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py +++ b/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py @@ -21,11 +21,11 @@ """ Views for managing keypairs. """ -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django import http from django.template.defaultfilters import slugify # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView # noqa from django.views.generic import View # noqa diff --git a/openstack_dashboard/dashboards/project/access_and_security/panel.py b/openstack_dashboard/dashboards/project/access_and_security/panel.py index da05b502f3..4d005cfef1 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/panel.py +++ b/openstack_dashboard/dashboards/project/access_and_security/panel.py @@ -15,7 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py index a0f828939b..6f4d0c7a07 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py +++ b/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py @@ -20,11 +20,11 @@ import netaddr -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from django.core import validators from django.forms import ValidationError # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py index e74d20b0f4..11b94c125f 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py +++ b/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/tests.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/tests.py index 20b31ea5df..17430ff8e7 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/tests.py +++ b/openstack_dashboard/dashboards/project/access_and_security/security_groups/tests.py @@ -20,8 +20,8 @@ import cgi -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py index c07dbeb312..f061464dcb 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py +++ b/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py @@ -21,9 +21,9 @@ """ Views for managing instances. """ -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/access_and_security/tabs.py b/openstack_dashboard/dashboards/project/access_and_security/tabs.py index 78fb37b87f..d1c30b6a57 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/tabs.py +++ b/openstack_dashboard/dashboards/project/access_and_security/tabs.py @@ -19,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import messages diff --git a/openstack_dashboard/dashboards/project/access_and_security/tests.py b/openstack_dashboard/dashboards/project/access_and_security/tests.py index eb289c86c7..14a7016f86 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/tests.py +++ b/openstack_dashboard/dashboards/project/access_and_security/tests.py @@ -20,7 +20,7 @@ from copy import deepcopy # noqa -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/containers/browsers.py b/openstack_dashboard/dashboards/project/containers/browsers.py index 2c449507cb..1dae3d4b31 100644 --- a/openstack_dashboard/dashboards/project/containers/browsers.py +++ b/openstack_dashboard/dashboards/project/containers/browsers.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import browsers diff --git a/openstack_dashboard/dashboards/project/containers/forms.py b/openstack_dashboard/dashboards/project/containers/forms.py index e83cdae3f8..38d149f0c8 100644 --- a/openstack_dashboard/dashboards/project/containers/forms.py +++ b/openstack_dashboard/dashboards/project/containers/forms.py @@ -18,9 +18,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.core import validators -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/containers/panel.py b/openstack_dashboard/dashboards/project/containers/panel.py index d0673c3ea6..1f726d499c 100644 --- a/openstack_dashboard/dashboards/project/containers/panel.py +++ b/openstack_dashboard/dashboards/project/containers/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/containers/tables.py b/openstack_dashboard/dashboards/project/containers/tables.py index 4b4073f879..9c11a15ed4 100644 --- a/openstack_dashboard/dashboards/project/containers/tables.py +++ b/openstack_dashboard/dashboards/project/containers/tables.py @@ -15,13 +15,13 @@ # under the License. import logging -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import shortcuts from django import template from django.template import defaultfilters as filters from django.utils import http from django.utils import safestring -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import messages diff --git a/openstack_dashboard/dashboards/project/containers/tests.py b/openstack_dashboard/dashboards/project/containers/tests.py index a368477e30..ee4ef1973c 100644 --- a/openstack_dashboard/dashboards/project/containers/tests.py +++ b/openstack_dashboard/dashboards/project/containers/tests.py @@ -21,7 +21,7 @@ import tempfile from django.core.files.uploadedfile import InMemoryUploadedFile # noqa -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from django.utils import http as utils_http diff --git a/openstack_dashboard/dashboards/project/containers/views.py b/openstack_dashboard/dashboards/project/containers/views.py index 3ad793a716..cca91c5c1e 100644 --- a/openstack_dashboard/dashboards/project/containers/views.py +++ b/openstack_dashboard/dashboards/project/containers/views.py @@ -22,11 +22,11 @@ Views for managing Swift containers. """ -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from django.utils.functional import cached_property # noqa from django.utils import http as utils_http -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views import generic from horizon import browsers diff --git a/openstack_dashboard/dashboards/project/dashboard.py b/openstack_dashboard/dashboards/project/dashboard.py index 378cc1cace..e29ef6f836 100644 --- a/openstack_dashboard/dashboards/project/dashboard.py +++ b/openstack_dashboard/dashboards/project/dashboard.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/database_backups/panel.py b/openstack_dashboard/dashboards/project/database_backups/panel.py index 3779e53a23..784e3ef060 100644 --- a/openstack_dashboard/dashboards/project/database_backups/panel.py +++ b/openstack_dashboard/dashboards/project/database_backups/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/database_backups/tables.py b/openstack_dashboard/dashboards/project/database_backups/tables.py index 0f9245db72..50121f028b 100644 --- a/openstack_dashboard/dashboards/project/database_backups/tables.py +++ b/openstack_dashboard/dashboards/project/database_backups/tables.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template.defaultfilters import title # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from horizon.utils import filters diff --git a/openstack_dashboard/dashboards/project/database_backups/tests.py b/openstack_dashboard/dashboards/project/database_backups/tests.py index 68996d5b5a..389b439b95 100644 --- a/openstack_dashboard/dashboards/project/database_backups/tests.py +++ b/openstack_dashboard/dashboards/project/database_backups/tests.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/database_backups/views.py b/openstack_dashboard/dashboards/project/database_backups/views.py index 0b5acf1533..85e53f5f64 100644 --- a/openstack_dashboard/dashboards/project/database_backups/views.py +++ b/openstack_dashboard/dashboards/project/database_backups/views.py @@ -17,8 +17,8 @@ """ Views for displaying database backups. """ -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables as horizon_tables diff --git a/openstack_dashboard/dashboards/project/database_backups/workflows/create_backup.py b/openstack_dashboard/dashboards/project/database_backups/workflows/create_backup.py index 7d1029c3a6..f3142772d9 100644 --- a/openstack_dashboard/dashboards/project/database_backups/workflows/create_backup.py +++ b/openstack_dashboard/dashboards/project/database_backups/workflows/create_backup.py @@ -16,7 +16,7 @@ import logging -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/databases/panel.py b/openstack_dashboard/dashboards/project/databases/panel.py index 08bcdb5e53..4811fd3027 100644 --- a/openstack_dashboard/dashboards/project/databases/panel.py +++ b/openstack_dashboard/dashboards/project/databases/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/databases/tables.py b/openstack_dashboard/dashboards/project/databases/tables.py index ea9766c3a9..a217f53301 100644 --- a/openstack_dashboard/dashboards/project/databases/tables.py +++ b/openstack_dashboard/dashboards/project/databases/tables.py @@ -16,7 +16,7 @@ from django.core import urlresolvers from django.template.defaultfilters import title # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/project/databases/tabs.py b/openstack_dashboard/dashboards/project/databases/tabs.py index a49e1b515b..a01c866b14 100644 --- a/openstack_dashboard/dashboards/project/databases/tabs.py +++ b/openstack_dashboard/dashboards/project/databases/tabs.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/databases/tests.py b/openstack_dashboard/dashboards/project/databases/tests.py index a73067d9ee..2a5c4e2ee2 100644 --- a/openstack_dashboard/dashboards/project/databases/tests.py +++ b/openstack_dashboard/dashboards/project/databases/tests.py @@ -15,7 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/databases/views.py b/openstack_dashboard/dashboards/project/databases/views.py index d1d4fdd9d6..f44db9c52a 100644 --- a/openstack_dashboard/dashboards/project/databases/views.py +++ b/openstack_dashboard/dashboards/project/databases/views.py @@ -19,9 +19,9 @@ Views for managing database instances. """ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables as horizon_tables diff --git a/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py b/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py index 4af3ec820c..7137e7d4ed 100644 --- a/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py +++ b/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py @@ -16,8 +16,8 @@ import logging -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms from horizon.utils import memoized diff --git a/openstack_dashboard/dashboards/project/firewalls/forms.py b/openstack_dashboard/dashboards/project/firewalls/forms.py index f591ce6485..2705564346 100644 --- a/openstack_dashboard/dashboards/project/firewalls/forms.py +++ b/openstack_dashboard/dashboards/project/firewalls/forms.py @@ -17,8 +17,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/firewalls/panel.py b/openstack_dashboard/dashboards/project/firewalls/panel.py index 011cd587ff..831871652e 100644 --- a/openstack_dashboard/dashboards/project/firewalls/panel.py +++ b/openstack_dashboard/dashboards/project/firewalls/panel.py @@ -10,8 +10,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/firewalls/tables.py b/openstack_dashboard/dashboards/project/firewalls/tables.py index 1a0c581d97..01b5c64ecb 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tables.py +++ b/openstack_dashboard/dashboards/project/firewalls/tables.py @@ -15,9 +15,9 @@ # # @author: KC Wang, Big Switch Networks -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template import defaultfilters as filters -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/project/firewalls/tabs.py b/openstack_dashboard/dashboards/project/firewalls/tabs.py index ee4fb793d1..0d1481b0c7 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tabs.py +++ b/openstack_dashboard/dashboards/project/firewalls/tabs.py @@ -15,8 +15,8 @@ # # @author: KC Wang, Big Switch Networks -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/firewalls/tests.py b/openstack_dashboard/dashboards/project/firewalls/tests.py index db907f31de..4cb363c864 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tests.py +++ b/openstack_dashboard/dashboards/project/firewalls/tests.py @@ -17,8 +17,8 @@ from mox import IsA # noqa -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django import http from openstack_dashboard import api diff --git a/openstack_dashboard/dashboards/project/firewalls/views.py b/openstack_dashboard/dashboards/project/firewalls/views.py index 93afa1c80c..73101c37d4 100644 --- a/openstack_dashboard/dashboards/project/firewalls/views.py +++ b/openstack_dashboard/dashboards/project/firewalls/views.py @@ -17,8 +17,8 @@ import re -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/firewalls/workflows.py b/openstack_dashboard/dashboards/project/firewalls/workflows.py index d54bec57c2..f19e19cb84 100644 --- a/openstack_dashboard/dashboards/project/firewalls/workflows.py +++ b/openstack_dashboard/dashboards/project/firewalls/workflows.py @@ -15,7 +15,7 @@ # # @author: KC Wang, Big Switch Networks -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py index 576cd25f5b..f8f900c3d4 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py @@ -21,10 +21,10 @@ """ Views for managing images. """ -from django.conf import settings # noqa +from django.conf import settings from django.forms import ValidationError # noqa from django.forms.widgets import HiddenInput # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py index 5c402059fa..51ac527a8f 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py @@ -14,13 +14,13 @@ # License for the specific language governing permissions and limitations # under the License. -from collections import defaultdict # noqa +from collections import defaultdict -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from django.template import defaultfilters as filters -from django.utils.http import urlencode # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.http import urlencode +from django.utils.translation import ugettext_lazy as _ from horizon import tables from horizon.utils.memoized import memoized # noqa diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tabs.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tabs.py index 1bdaee63c6..8f76857efd 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tabs.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tabs.py @@ -15,8 +15,7 @@ # under the License. from django import conf -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py index 4df61b18f8..c434587126 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py @@ -20,9 +20,9 @@ import tempfile -from django.conf import settings # noqa +from django.conf import settings from django.core.files.uploadedfile import InMemoryUploadedFile # noqa -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.forms.widgets import HiddenInput # noqa from django import http from django.test.utils import override_settings # noqa diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py index 334edab44f..c2b7ca0f5e 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py @@ -21,9 +21,9 @@ """ Views for managing images. """ -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/panel.py b/openstack_dashboard/dashboards/project/images_and_snapshots/panel.py index 68888a99e0..1a1f644f0d 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/panel.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/panel.py @@ -15,7 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py index ba339cdd38..1bd4739b96 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py @@ -18,8 +18,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/tests.py b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/tests.py index d2cbd86518..997c9cbdd6 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/tests.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/tests.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py index 6813f61064..299ec44613 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py @@ -21,9 +21,9 @@ """ Views for managing instance snapshots. """ -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/tests.py b/openstack_dashboard/dashboards/project/images_and_snapshots/tests.py index e7a290f9bb..4ad1188dd3 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/tests.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/tests.py @@ -19,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py b/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py index ad26ac5ef9..bc4cb507cc 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/views.py b/openstack_dashboard/dashboards/project/images_and_snapshots/views.py index 408cb3fac7..7e001675c4 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/views.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/views.py @@ -23,8 +23,8 @@ Views for managing Images and Snapshots. """ -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py index 8e5578df03..bd9c34fdfd 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py @@ -14,11 +14,11 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.utils import html -from django.utils.http import urlencode # noqa +from django.utils.http import urlencode from django.utils import safestring -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tabs.py b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tabs.py index a65c16a22e..84e2a920c4 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tabs.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tabs.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tests.py b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tests.py index 12c21f1ebe..73fa60f02c 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tests.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tests.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/instances/forms.py b/openstack_dashboard/dashboards/project/instances/forms.py index dcd594fee9..87a249b315 100644 --- a/openstack_dashboard/dashboards/project/instances/forms.py +++ b/openstack_dashboard/dashboards/project/instances/forms.py @@ -15,9 +15,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template.defaultfilters import filesizeformat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.decorators.debug import sensitive_variables # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/instances/panel.py b/openstack_dashboard/dashboards/project/instances/panel.py index 86430ffa01..c204973ed4 100644 --- a/openstack_dashboard/dashboards/project/instances/panel.py +++ b/openstack_dashboard/dashboards/project/instances/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index 7f4e1e7493..ac028bec02 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -20,11 +20,10 @@ import logging from django.core import urlresolvers from django import shortcuts from django import template -from django.template.defaultfilters import timesince # noqa from django.template.defaultfilters import title # noqa -from django.utils.http import urlencode # noqa +from django.utils.http import urlencode from django.utils.translation import string_concat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import conf from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/instances/tabs.py b/openstack_dashboard/dashboards/project/instances/tabs.py index 362cbd86f6..4caa7d4be3 100644 --- a/openstack_dashboard/dashboards/project/instances/tabs.py +++ b/openstack_dashboard/dashboards/project/instances/tabs.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/instances/tests.py b/openstack_dashboard/dashboards/project/instances/tests.py index 78e60ef166..8d8a384787 100644 --- a/openstack_dashboard/dashboards/project/instances/tests.py +++ b/openstack_dashboard/dashboards/project/instances/tests.py @@ -21,11 +21,11 @@ import json import uuid -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from django.test import utils as test_utils -from django.utils.datastructures import SortedDict # noqa -from django.utils.http import urlencode # noqa +from django.utils.datastructures import SortedDict +from django.utils.http import urlencode from mox import IgnoreArg # noqa from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/instances/views.py b/openstack_dashboard/dashboards/project/instances/views.py index 55050f9e16..534cb1cae6 100644 --- a/openstack_dashboard/dashboards/project/instances/views.py +++ b/openstack_dashboard/dashboards/project/instances/views.py @@ -21,12 +21,12 @@ """ Views for managing instances. """ -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django import http from django import shortcuts -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py b/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py index 29c32ed7fe..34ec075a7e 100644 --- a/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py +++ b/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py @@ -21,11 +21,11 @@ import json import logging -from django.conf import settings # noqa +from django.conf import settings from django.template.defaultfilters import filesizeformat # noqa from django.utils.text import normalize_newlines # noqa -from django.utils.translation import ugettext_lazy as _ # noqa -from django.utils.translation import ungettext_lazy # noqa +from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ungettext_lazy from django.views.decorators.debug import sensitive_variables # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py b/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py index aeb099a505..72d5849551 100644 --- a/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py +++ b/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py @@ -17,7 +17,7 @@ import json -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.decorators.debug import sensitive_variables # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/instances/workflows/update_instance.py b/openstack_dashboard/dashboards/project/instances/workflows/update_instance.py index 5a09d11548..507834aaf3 100644 --- a/openstack_dashboard/dashboards/project/instances/workflows/update_instance.py +++ b/openstack_dashboard/dashboards/project/instances/workflows/update_instance.py @@ -19,7 +19,7 @@ # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/loadbalancers/forms.py b/openstack_dashboard/dashboards/project/loadbalancers/forms.py index 816a68f8de..3ae9b14212 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/forms.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/forms.py @@ -18,8 +18,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/loadbalancers/panel.py b/openstack_dashboard/dashboards/project/loadbalancers/panel.py index 3077da82f7..fc7f3c6c6b 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/panel.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/panel.py @@ -10,8 +10,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/loadbalancers/tables.py b/openstack_dashboard/dashboards/project/loadbalancers/tables.py index 522121c069..23565c6832 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/tables.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/tables.py @@ -15,10 +15,10 @@ # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template import defaultfilters as filters from django.utils import http -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/project/loadbalancers/tabs.py b/openstack_dashboard/dashboards/project/loadbalancers/tabs.py index 36a3f05d70..e5e373b826 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/tabs.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/tabs.py @@ -15,7 +15,7 @@ # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/loadbalancers/tests.py b/openstack_dashboard/dashboards/project/loadbalancers/tests.py index ea16d646c0..d776843255 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/tests.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/tests.py @@ -14,8 +14,8 @@ from mox import IsA # noqa -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django import http from horizon.workflows import views diff --git a/openstack_dashboard/dashboards/project/loadbalancers/views.py b/openstack_dashboard/dashboards/project/loadbalancers/views.py index e25c10611b..8e88f53c49 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/views.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/views.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/loadbalancers/workflows.py b/openstack_dashboard/dashboards/project/loadbalancers/workflows.py index 8699c95b44..004dd46044 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/workflows.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/workflows.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/network_topology/instances/tables.py b/openstack_dashboard/dashboards/project/network_topology/instances/tables.py index 8b7fd4d40e..de32911e88 100644 --- a/openstack_dashboard/dashboards/project/network_topology/instances/tables.py +++ b/openstack_dashboard/dashboards/project/network_topology/instances/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from openstack_dashboard.dashboards.project.instances import tables as i_tables diff --git a/openstack_dashboard/dashboards/project/network_topology/panel.py b/openstack_dashboard/dashboards/project/network_topology/panel.py index 33163a324e..4277da735d 100644 --- a/openstack_dashboard/dashboards/project/network_topology/panel.py +++ b/openstack_dashboard/dashboards/project/network_topology/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/network_topology/ports/tables.py b/openstack_dashboard/dashboards/project/network_topology/ports/tables.py index 918cb4f12a..36a12709d2 100644 --- a/openstack_dashboard/dashboards/project/network_topology/ports/tables.py +++ b/openstack_dashboard/dashboards/project/network_topology/ports/tables.py @@ -15,7 +15,7 @@ # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from openstack_dashboard.dashboards.project.routers.ports import\ tables as p_tables diff --git a/openstack_dashboard/dashboards/project/network_topology/routers/tables.py b/openstack_dashboard/dashboards/project/network_topology/routers/tables.py index 291aaa8b1b..cca07652e5 100644 --- a/openstack_dashboard/dashboards/project/network_topology/routers/tables.py +++ b/openstack_dashboard/dashboards/project/network_topology/routers/tables.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from openstack_dashboard.dashboards.project.routers import\ tables as r_tables diff --git a/openstack_dashboard/dashboards/project/network_topology/views.py b/openstack_dashboard/dashboards/project/network_topology/views.py index 0d4bd88412..58976a02b9 100644 --- a/openstack_dashboard/dashboards/project/network_topology/views.py +++ b/openstack_dashboard/dashboards/project/network_topology/views.py @@ -20,9 +20,9 @@ import json -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.conf import settings +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django.http import HttpResponse # noqa from django.views.generic import TemplateView # noqa from django.views.generic import View # noqa diff --git a/openstack_dashboard/dashboards/project/networks/forms.py b/openstack_dashboard/dashboards/project/networks/forms.py index a40b0cda30..24fdaab91f 100644 --- a/openstack_dashboard/dashboards/project/networks/forms.py +++ b/openstack_dashboard/dashboards/project/networks/forms.py @@ -20,8 +20,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/networks/panel.py b/openstack_dashboard/dashboards/project/networks/panel.py index ea4b90a344..96b472eff5 100644 --- a/openstack_dashboard/dashboards/project/networks/panel.py +++ b/openstack_dashboard/dashboards/project/networks/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/networks/ports/forms.py b/openstack_dashboard/dashboards/project/networks/ports/forms.py index 5bbd597eca..d3e7c0e729 100644 --- a/openstack_dashboard/dashboards/project/networks/ports/forms.py +++ b/openstack_dashboard/dashboards/project/networks/ports/forms.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/networks/ports/tables.py b/openstack_dashboard/dashboards/project/networks/ports/tables.py index f35cf39c04..3b87c37a00 100644 --- a/openstack_dashboard/dashboards/project/networks/ports/tables.py +++ b/openstack_dashboard/dashboards/project/networks/ports/tables.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import template -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables diff --git a/openstack_dashboard/dashboards/project/networks/ports/tabs.py b/openstack_dashboard/dashboards/project/networks/ports/tabs.py index 61371c440e..ceca673636 100644 --- a/openstack_dashboard/dashboards/project/networks/ports/tabs.py +++ b/openstack_dashboard/dashboards/project/networks/ports/tabs.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/networks/ports/views.py b/openstack_dashboard/dashboards/project/networks/ports/views.py index a2b6b0b17f..8807377e09 100644 --- a/openstack_dashboard/dashboards/project/networks/ports/views.py +++ b/openstack_dashboard/dashboards/project/networks/ports/views.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/networks/subnets/tables.py b/openstack_dashboard/dashboards/project/networks/subnets/tables.py index 3e89169d81..40139cdffe 100644 --- a/openstack_dashboard/dashboards/project/networks/subnets/tables.py +++ b/openstack_dashboard/dashboards/project/networks/subnets/tables.py @@ -16,9 +16,9 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/project/networks/subnets/tabs.py b/openstack_dashboard/dashboards/project/networks/subnets/tabs.py index e56b70af07..5b570829d9 100644 --- a/openstack_dashboard/dashboards/project/networks/subnets/tabs.py +++ b/openstack_dashboard/dashboards/project/networks/subnets/tabs.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/networks/subnets/views.py b/openstack_dashboard/dashboards/project/networks/subnets/views.py index 855c2815a7..db0849a08a 100644 --- a/openstack_dashboard/dashboards/project/networks/subnets/views.py +++ b/openstack_dashboard/dashboards/project/networks/subnets/views.py @@ -17,8 +17,8 @@ """ Views for managing Neutron Subnets. """ -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/networks/subnets/workflows.py b/openstack_dashboard/dashboards/project/networks/subnets/workflows.py index 581ae405e8..367ae5b059 100644 --- a/openstack_dashboard/dashboards/project/networks/subnets/workflows.py +++ b/openstack_dashboard/dashboards/project/networks/subnets/workflows.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/networks/tables.py b/openstack_dashboard/dashboards/project/networks/tables.py index 13f328253f..880906588e 100644 --- a/openstack_dashboard/dashboards/project/networks/tables.py +++ b/openstack_dashboard/dashboards/project/networks/tables.py @@ -15,10 +15,10 @@ # under the License. import logging -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import template from django.template import defaultfilters as filters -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/project/networks/tests.py b/openstack_dashboard/dashboards/project/networks/tests.py index 9d2919ef1e..26bc4d52a6 100644 --- a/openstack_dashboard/dashboards/project/networks/tests.py +++ b/openstack_dashboard/dashboards/project/networks/tests.py @@ -14,9 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http -from django.utils.html import escape # noqa +from django.utils.html import escape from horizon.workflows import views diff --git a/openstack_dashboard/dashboards/project/networks/views.py b/openstack_dashboard/dashboards/project/networks/views.py index bc4ba3da31..4aba3aee72 100644 --- a/openstack_dashboard/dashboards/project/networks/views.py +++ b/openstack_dashboard/dashboards/project/networks/views.py @@ -17,8 +17,8 @@ """ Views for managing Neutron Networks. """ -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/networks/workflows.py b/openstack_dashboard/dashboards/project/networks/workflows.py index 54180f1956..45d60573e0 100644 --- a/openstack_dashboard/dashboards/project/networks/workflows.py +++ b/openstack_dashboard/dashboards/project/networks/workflows.py @@ -18,8 +18,8 @@ import logging import netaddr -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/overview/panel.py b/openstack_dashboard/dashboards/project/overview/panel.py index d3354315b5..7ec447b4fd 100644 --- a/openstack_dashboard/dashboards/project/overview/panel.py +++ b/openstack_dashboard/dashboards/project/overview/panel.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/overview/tests.py b/openstack_dashboard/dashboards/project/overview/tests.py index 094a9a8c24..2007feb64c 100644 --- a/openstack_dashboard/dashboards/project/overview/tests.py +++ b/openstack_dashboard/dashboards/project/overview/tests.py @@ -20,7 +20,7 @@ import datetime -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from django.test.utils import override_settings # noqa from django.utils import timezone diff --git a/openstack_dashboard/dashboards/project/overview/views.py b/openstack_dashboard/dashboards/project/overview/views.py index a1a00b1ae6..fc58eb110d 100644 --- a/openstack_dashboard/dashboards/project/overview/views.py +++ b/openstack_dashboard/dashboards/project/overview/views.py @@ -21,7 +21,7 @@ from django.template.defaultfilters import capfirst # noqa from django.template.defaultfilters import floatformat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView # noqa from openstack_dashboard import usage diff --git a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/forms.py b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/forms.py index fdb4eb3a14..e3faf8c845 100644 --- a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/forms.py +++ b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/forms.py @@ -17,8 +17,8 @@ import logging from django.core.exceptions import ValidationError # noqa -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tables.py b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tables.py index 5d37b6bb9a..903e5b8d41 100644 --- a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tables.py +++ b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tables.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from openstack_dashboard.dashboards.project.routers.extensions.routerrules\ import rulemanager diff --git a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tabs.py b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tabs.py index 061d975c34..30cc6114ef 100644 --- a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tabs.py +++ b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/tabs.py @@ -17,8 +17,8 @@ import netaddr from django import template -from django.template.loader import render_to_string # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.template.loader import render_to_string +from django.utils.translation import ugettext_lazy as _ from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/views.py b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/views.py index 0658ae4c31..acb05c217e 100644 --- a/openstack_dashboard/dashboards/project/routers/extensions/routerrules/views.py +++ b/openstack_dashboard/dashboards/project/routers/extensions/routerrules/views.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/routers/forms.py b/openstack_dashboard/dashboards/project/routers/forms.py index 6f7fd4aef3..fe5cc1a06d 100644 --- a/openstack_dashboard/dashboards/project/routers/forms.py +++ b/openstack_dashboard/dashboards/project/routers/forms.py @@ -20,8 +20,8 @@ Views for managing Neutron Routers. """ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/routers/panel.py b/openstack_dashboard/dashboards/project/routers/panel.py index 3bca87dd70..fbaf831eda 100644 --- a/openstack_dashboard/dashboards/project/routers/panel.py +++ b/openstack_dashboard/dashboards/project/routers/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/routers/ports/forms.py b/openstack_dashboard/dashboards/project/routers/ports/forms.py index 5dea6b70bf..5bf24e8e6a 100644 --- a/openstack_dashboard/dashboards/project/routers/ports/forms.py +++ b/openstack_dashboard/dashboards/project/routers/ports/forms.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/routers/ports/tables.py b/openstack_dashboard/dashboards/project/routers/ports/tables.py index 02d20501f3..44e62b711a 100644 --- a/openstack_dashboard/dashboards/project/routers/ports/tables.py +++ b/openstack_dashboard/dashboards/project/routers/ports/tables.py @@ -16,8 +16,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/project/routers/ports/tabs.py b/openstack_dashboard/dashboards/project/routers/ports/tabs.py index 3ff7ef9406..1b310b5322 100644 --- a/openstack_dashboard/dashboards/project/routers/ports/tabs.py +++ b/openstack_dashboard/dashboards/project/routers/ports/tabs.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/routers/ports/views.py b/openstack_dashboard/dashboards/project/routers/ports/views.py index 175ad49b20..611039e674 100644 --- a/openstack_dashboard/dashboards/project/routers/ports/views.py +++ b/openstack_dashboard/dashboards/project/routers/ports/views.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/routers/tables.py b/openstack_dashboard/dashboards/project/routers/tables.py index 8cb67a18df..eb7d764ae8 100644 --- a/openstack_dashboard/dashboards/project/routers/tables.py +++ b/openstack_dashboard/dashboards/project/routers/tables.py @@ -16,9 +16,9 @@ import logging -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template.defaultfilters import title # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import messages diff --git a/openstack_dashboard/dashboards/project/routers/tabs.py b/openstack_dashboard/dashboards/project/routers/tabs.py index e79e6d6d91..e1f50db62f 100644 --- a/openstack_dashboard/dashboards/project/routers/tabs.py +++ b/openstack_dashboard/dashboards/project/routers/tabs.py @@ -14,8 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/routers/tests.py b/openstack_dashboard/dashboards/project/routers/tests.py index be707ba81d..8ee964f2de 100644 --- a/openstack_dashboard/dashboards/project/routers/tests.py +++ b/openstack_dashboard/dashboards/project/routers/tests.py @@ -15,7 +15,7 @@ # under the License. import copy -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/routers/views.py b/openstack_dashboard/dashboards/project/routers/views.py index b3ebb835f4..779020c9b4 100644 --- a/openstack_dashboard/dashboards/project/routers/views.py +++ b/openstack_dashboard/dashboards/project/routers/views.py @@ -19,9 +19,9 @@ Views for managing Neutron Routers. """ -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/stacks/forms.py b/openstack_dashboard/dashboards/project/stacks/forms.py index 23cc7cda77..c640c75d79 100644 --- a/openstack_dashboard/dashboards/project/stacks/forms.py +++ b/openstack_dashboard/dashboards/project/stacks/forms.py @@ -16,7 +16,7 @@ import json import logging import re -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.decorators.debug import sensitive_variables # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/stacks/mappings.py b/openstack_dashboard/dashboards/project/stacks/mappings.py index c6e5acf93e..21f4505802 100644 --- a/openstack_dashboard/dashboards/project/stacks/mappings.py +++ b/openstack_dashboard/dashboards/project/stacks/mappings.py @@ -17,7 +17,7 @@ import logging import re import urlparse -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template.defaultfilters import register # noqa from openstack_dashboard.api import swift diff --git a/openstack_dashboard/dashboards/project/stacks/panel.py b/openstack_dashboard/dashboards/project/stacks/panel.py index cf0b4be84f..7d9765732d 100644 --- a/openstack_dashboard/dashboards/project/stacks/panel.py +++ b/openstack_dashboard/dashboards/project/stacks/panel.py @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/stacks/tables.py b/openstack_dashboard/dashboards/project/stacks/tables.py index ef6a701bd1..aae990c4c3 100644 --- a/openstack_dashboard/dashboards/project/stacks/tables.py +++ b/openstack_dashboard/dashboards/project/stacks/tables.py @@ -15,7 +15,7 @@ from django.http import Http404 # noqa from django.template.defaultfilters import timesince # noqa from django.template.defaultfilters import title # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import messages from horizon import tables diff --git a/openstack_dashboard/dashboards/project/stacks/tabs.py b/openstack_dashboard/dashboards/project/stacks/tabs.py index 15ef833880..935975be6a 100644 --- a/openstack_dashboard/dashboards/project/stacks/tabs.py +++ b/openstack_dashboard/dashboards/project/stacks/tabs.py @@ -14,7 +14,7 @@ import logging -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import messages from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/stacks/tests.py b/openstack_dashboard/dashboards/project/stacks/tests.py index 016e8e7c5b..7f29e2b67b 100644 --- a/openstack_dashboard/dashboards/project/stacks/tests.py +++ b/openstack_dashboard/dashboards/project/stacks/tests.py @@ -14,7 +14,7 @@ import json -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/project/stacks/views.py b/openstack_dashboard/dashboards/project/stacks/views.py index b0e006a545..7f760d4e19 100644 --- a/openstack_dashboard/dashboards/project/stacks/views.py +++ b/openstack_dashboard/dashboards/project/stacks/views.py @@ -21,10 +21,10 @@ from horizon import tables from horizon import tabs from horizon.utils import memoized -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django.http import HttpResponse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views import generic from openstack_dashboard import api diff --git a/openstack_dashboard/dashboards/project/volumes/forms.py b/openstack_dashboard/dashboards/project/volumes/forms.py index dd3b646b40..f700fdd59c 100644 --- a/openstack_dashboard/dashboards/project/volumes/forms.py +++ b/openstack_dashboard/dashboards/project/volumes/forms.py @@ -19,11 +19,11 @@ Views for managing volumes. """ -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from django.forms import ValidationError # noqa from django.template.defaultfilters import filesizeformat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/volumes/panel.py b/openstack_dashboard/dashboards/project/volumes/panel.py index 5684f1976b..351e63cf6e 100644 --- a/openstack_dashboard/dashboards/project/volumes/panel.py +++ b/openstack_dashboard/dashboards/project/volumes/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/volumes/tables.py b/openstack_dashboard/dashboards/project/volumes/tables.py index 9238440ea3..4798ea82e0 100644 --- a/openstack_dashboard/dashboards/project/volumes/tables.py +++ b/openstack_dashboard/dashboards/project/volumes/tables.py @@ -15,12 +15,12 @@ # under the License. from django.core.urlresolvers import NoReverseMatch # noqa -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django.template.defaultfilters import title # noqa from django.utils import html from django.utils import safestring from django.utils.translation import string_concat # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/volumes/tabs.py b/openstack_dashboard/dashboards/project/volumes/tabs.py index 69b215f135..5310654d02 100644 --- a/openstack_dashboard/dashboards/project/volumes/tabs.py +++ b/openstack_dashboard/dashboards/project/volumes/tabs.py @@ -14,8 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/volumes/tests.py b/openstack_dashboard/dashboards/project/volumes/tests.py index ec22a1810c..9ec17b63fe 100644 --- a/openstack_dashboard/dashboards/project/volumes/tests.py +++ b/openstack_dashboard/dashboards/project/volumes/tests.py @@ -18,8 +18,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from django.forms import widgets from django import http diff --git a/openstack_dashboard/dashboards/project/volumes/views.py b/openstack_dashboard/dashboards/project/volumes/views.py index 32b428061a..7c3d1a3f55 100644 --- a/openstack_dashboard/dashboards/project/volumes/views.py +++ b/openstack_dashboard/dashboards/project/volumes/views.py @@ -18,10 +18,10 @@ Views for managing volumes. """ -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.datastructures import SortedDict # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy +from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/vpn/panel.py b/openstack_dashboard/dashboards/project/vpn/panel.py index d358d8032b..f45c953086 100644 --- a/openstack_dashboard/dashboards/project/vpn/panel.py +++ b/openstack_dashboard/dashboards/project/vpn/panel.py @@ -16,8 +16,8 @@ # # @author: Tatiana Mazur -from django.conf import settings # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.conf import settings +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/project/vpn/tables.py b/openstack_dashboard/dashboards/project/vpn/tables.py index de306debf6..003182f420 100644 --- a/openstack_dashboard/dashboards/project/vpn/tables.py +++ b/openstack_dashboard/dashboards/project/vpn/tables.py @@ -18,7 +18,7 @@ from django.template.defaultfilters import title # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from horizon.utils import filters diff --git a/openstack_dashboard/dashboards/project/vpn/tabs.py b/openstack_dashboard/dashboards/project/vpn/tabs.py index 0d22b7c024..3b096e6dde 100644 --- a/openstack_dashboard/dashboards/project/vpn/tabs.py +++ b/openstack_dashboard/dashboards/project/vpn/tabs.py @@ -17,8 +17,8 @@ # @author: Tatiana Mazur -from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse_lazy +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/vpn/tests.py b/openstack_dashboard/dashboards/project/vpn/tests.py index 6fbedc1752..a4102eec66 100644 --- a/openstack_dashboard/dashboards/project/vpn/tests.py +++ b/openstack_dashboard/dashboards/project/vpn/tests.py @@ -18,8 +18,8 @@ from mox import IsA # noqa -from django.core.urlresolvers import reverse # noqa -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse +from django.core.urlresolvers import reverse_lazy from django import http from horizon.workflows import views diff --git a/openstack_dashboard/dashboards/project/vpn/views.py b/openstack_dashboard/dashboards/project/vpn/views.py index a6b092cd9f..d1cf5e7aa5 100644 --- a/openstack_dashboard/dashboards/project/vpn/views.py +++ b/openstack_dashboard/dashboards/project/vpn/views.py @@ -17,7 +17,7 @@ # @author: Tatiana Mazur -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import messages diff --git a/openstack_dashboard/dashboards/project/vpn/workflows.py b/openstack_dashboard/dashboards/project/vpn/workflows.py index c680db6d2f..a0589ecf4e 100644 --- a/openstack_dashboard/dashboards/project/vpn/workflows.py +++ b/openstack_dashboard/dashboards/project/vpn/workflows.py @@ -16,7 +16,7 @@ # # @author: Tatiana Mazur -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/router/dashboard.py b/openstack_dashboard/dashboards/router/dashboard.py index e84c352490..1e2473e02a 100644 --- a/openstack_dashboard/dashboards/router/dashboard.py +++ b/openstack_dashboard/dashboards/router/dashboard.py @@ -14,7 +14,7 @@ # # @author: Abishek Subramanian, Cisco Systems, Inc. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from openstack_dashboard.api import neutron diff --git a/openstack_dashboard/dashboards/router/nexus1000v/forms.py b/openstack_dashboard/dashboards/router/nexus1000v/forms.py index 1bbcbddae2..5aee5b7ec9 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/forms.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/forms.py @@ -23,8 +23,8 @@ from horizon import messages from openstack_dashboard import api -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ LOG = logging.getLogger(__name__) diff --git a/openstack_dashboard/dashboards/router/nexus1000v/panel.py b/openstack_dashboard/dashboards/router/nexus1000v/panel.py index e5c16d4aa6..d876c39a41 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/panel.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/panel.py @@ -15,7 +15,7 @@ # @author: Abishek Subramanian, Cisco Systems, Inc. # @author: Sergey Sudakovich, Cisco Systems, Inc. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon from openstack_dashboard.api import neutron as neutron diff --git a/openstack_dashboard/dashboards/router/nexus1000v/tables.py b/openstack_dashboard/dashboards/router/nexus1000v/tables.py index cc3828f51e..c4cf6406ca 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/tables.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/tables.py @@ -17,8 +17,8 @@ import logging -from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import tables diff --git a/openstack_dashboard/dashboards/router/nexus1000v/tabs.py b/openstack_dashboard/dashboards/router/nexus1000v/tabs.py index 28f8b980a6..00f08b0adc 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/tabs.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/tabs.py @@ -15,7 +15,7 @@ # @author: Abishek Subramanian, Cisco Systems, Inc. # @author: Sergey Sudakovich, Cisco Systems, Inc. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tabs diff --git a/openstack_dashboard/dashboards/router/nexus1000v/tests.py b/openstack_dashboard/dashboards/router/nexus1000v/tests.py index f8cb5caca3..5ad3b422e8 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/tests.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/tests.py @@ -14,7 +14,7 @@ # # @author: Abishek Subramanian, Cisco Systems, Inc. -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/router/nexus1000v/views.py b/openstack_dashboard/dashboards/router/nexus1000v/views.py index 30408a96e7..38f6a70c7b 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/views.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/views.py @@ -19,7 +19,7 @@ import logging from django.core import urlresolvers from django.utils import datastructures -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/settings/dashboard.py b/openstack_dashboard/dashboards/settings/dashboard.py index 0f23c19748..f9615ba9db 100644 --- a/openstack_dashboard/dashboards/settings/dashboard.py +++ b/openstack_dashboard/dashboards/settings/dashboard.py @@ -15,7 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/settings/password/forms.py b/openstack_dashboard/dashboards/settings/password/forms.py index 5cc736161e..25798067da 100644 --- a/openstack_dashboard/dashboards/settings/password/forms.py +++ b/openstack_dashboard/dashboards/settings/password/forms.py @@ -14,10 +14,10 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa +from django.conf import settings from django.forms import ValidationError # noqa from django import http -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django.views.decorators.debug import sensitive_variables # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/settings/password/panel.py b/openstack_dashboard/dashboards/settings/password/panel.py index 0633418650..863393e126 100644 --- a/openstack_dashboard/dashboards/settings/password/panel.py +++ b/openstack_dashboard/dashboards/settings/password/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/settings/password/tests.py b/openstack_dashboard/dashboards/settings/password/tests.py index 1e5b6eff63..f69005f592 100644 --- a/openstack_dashboard/dashboards/settings/password/tests.py +++ b/openstack_dashboard/dashboards/settings/password/tests.py @@ -15,7 +15,7 @@ # under the License. from django.core.urlresolvers import NoReverseMatch # noqa -from django.core.urlresolvers import reverse # noqa +from django.core.urlresolvers import reverse from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/settings/password/views.py b/openstack_dashboard/dashboards/settings/password/views.py index d26873f55c..fccfa47571 100644 --- a/openstack_dashboard/dashboards/settings/password/views.py +++ b/openstack_dashboard/dashboards/settings/password/views.py @@ -16,7 +16,7 @@ from horizon import forms -from django.core.urlresolvers import reverse_lazy # noqa +from django.core.urlresolvers import reverse_lazy from openstack_dashboard.dashboards.settings.password \ import forms as pass_forms diff --git a/openstack_dashboard/dashboards/settings/user/forms.py b/openstack_dashboard/dashboards/settings/user/forms.py index 6ba67b5dbe..ede57a7cef 100644 --- a/openstack_dashboard/dashboards/settings/user/forms.py +++ b/openstack_dashboard/dashboards/settings/user/forms.py @@ -17,11 +17,11 @@ from datetime import datetime # noqa import pytz -from django.conf import settings # noqa +from django.conf import settings from django import shortcuts from django.utils import encoding from django.utils import translation -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import forms from horizon import messages diff --git a/openstack_dashboard/dashboards/settings/user/panel.py b/openstack_dashboard/dashboards/settings/user/panel.py index 1d0e5f4f02..635fe321b7 100644 --- a/openstack_dashboard/dashboards/settings/user/panel.py +++ b/openstack_dashboard/dashboards/settings/user/panel.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ import horizon diff --git a/openstack_dashboard/dashboards/settings/user/tests.py b/openstack_dashboard/dashboards/settings/user/tests.py index ee3355f11f..2003f1ba48 100644 --- a/openstack_dashboard/dashboards/settings/user/tests.py +++ b/openstack_dashboard/dashboards/settings/user/tests.py @@ -14,8 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa -from django.core.urlresolvers import reverse # noqa +from django.conf import settings +from django.core.urlresolvers import reverse from openstack_dashboard.test import helpers as test diff --git a/openstack_dashboard/dashboards/settings/user/views.py b/openstack_dashboard/dashboards/settings/user/views.py index 9f68fe6122..1231c78be9 100644 --- a/openstack_dashboard/dashboards/settings/user/views.py +++ b/openstack_dashboard/dashboards/settings/user/views.py @@ -14,7 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa +from django.conf import settings from horizon import forms from horizon.utils import functions as utils diff --git a/openstack_dashboard/openstack/common/fileutils.py b/openstack_dashboard/openstack/common/fileutils.py index 698a5bc71f..3c50ea6c14 100644 --- a/openstack_dashboard/openstack/common/fileutils.py +++ b/openstack_dashboard/openstack/common/fileutils.py @@ -21,7 +21,7 @@ import errno import os from openstack_dashboard.openstack.common import excutils -from openstack_dashboard.openstack.common.gettextutils import _ # noqa +from openstack_dashboard.openstack.common.gettextutils import _ from openstack_dashboard.openstack.common import log as logging LOG = logging.getLogger(__name__) diff --git a/openstack_dashboard/openstack/common/policy.py b/openstack_dashboard/openstack/common/policy.py index 1657624a94..7cd4bd1222 100644 --- a/openstack_dashboard/openstack/common/policy.py +++ b/openstack_dashboard/openstack/common/policy.py @@ -65,7 +65,7 @@ from oslo.config import cfg import six from openstack_dashboard.openstack.common import fileutils -from openstack_dashboard.openstack.common.gettextutils import _ # noqa +from openstack_dashboard.openstack.common.gettextutils import _ from openstack_dashboard.openstack.common import jsonutils from openstack_dashboard.openstack.common import log as logging diff --git a/openstack_dashboard/policy.py b/openstack_dashboard/policy.py index 6e41ca61f3..379fad3ddc 100644 --- a/openstack_dashboard/policy.py +++ b/openstack_dashboard/policy.py @@ -20,7 +20,7 @@ import logging import os.path -from django.conf import settings # noqa +from django.conf import settings from oslo.config import cfg diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index 9871152b32..86f0da0193 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -23,7 +23,7 @@ import os import sys import warnings -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from openstack_dashboard import exceptions diff --git a/openstack_dashboard/test/api_tests/glance_tests.py b/openstack_dashboard/test/api_tests/glance_tests.py index 6c19433a49..38d79d4e00 100644 --- a/openstack_dashboard/test/api_tests/glance_tests.py +++ b/openstack_dashboard/test/api_tests/glance_tests.py @@ -18,7 +18,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf import settings # noqa +from django.conf import settings from django.test.utils import override_settings # noqa from openstack_dashboard import api diff --git a/openstack_dashboard/test/api_tests/nova_tests.py b/openstack_dashboard/test/api_tests/nova_tests.py index 19ec38575e..569121e831 100644 --- a/openstack_dashboard/test/api_tests/nova_tests.py +++ b/openstack_dashboard/test/api_tests/nova_tests.py @@ -21,7 +21,7 @@ from __future__ import absolute_import -from django.conf import settings # noqa +from django.conf import settings from django import http from django.test.utils import override_settings # noqa diff --git a/openstack_dashboard/test/helpers.py b/openstack_dashboard/test/helpers.py index c0250186dc..d5d9915232 100644 --- a/openstack_dashboard/test/helpers.py +++ b/openstack_dashboard/test/helpers.py @@ -21,7 +21,7 @@ from functools import wraps # noqa import os -from django.conf import settings # noqa +from django.conf import settings from django.contrib.auth.middleware import AuthenticationMiddleware # noqa from django.contrib.messages.storage import default_storage # noqa from django.core.handlers import wsgi diff --git a/openstack_dashboard/test/test_data/keystone_data.py b/openstack_dashboard/test/test_data/keystone_data.py index 9515b94fda..2eebbcca9c 100644 --- a/openstack_dashboard/test/test_data/keystone_data.py +++ b/openstack_dashboard/test/test_data/keystone_data.py @@ -14,7 +14,7 @@ from datetime import timedelta # noqa -from django.conf import settings # noqa +from django.conf import settings from django.utils import datetime_safe from keystoneclient import access diff --git a/openstack_dashboard/test/tests/error_pages.py b/openstack_dashboard/test/tests/error_pages.py index c6a1661215..8a0732bfdc 100644 --- a/openstack_dashboard/test/tests/error_pages.py +++ b/openstack_dashboard/test/tests/error_pages.py @@ -17,7 +17,7 @@ from os import path -from django.conf import settings # noqa +from django.conf import settings from openstack_dashboard.test import helpers as test diff --git a/openstack_dashboard/urls.py b/openstack_dashboard/urls.py index 8879f172af..b7895c9ee2 100644 --- a/openstack_dashboard/urls.py +++ b/openstack_dashboard/urls.py @@ -22,7 +22,7 @@ URL patterns for the OpenStack Dashboard. """ -from django.conf import settings # noqa +from django.conf import settings from django.conf.urls import include # noqa from django.conf.urls import patterns # noqa from django.conf.urls.static import static # noqa diff --git a/openstack_dashboard/usage/base.py b/openstack_dashboard/usage/base.py index 0db9ec2368..33fd145d92 100644 --- a/openstack_dashboard/usage/base.py +++ b/openstack_dashboard/usage/base.py @@ -16,13 +16,12 @@ from csv import DictWriter # noqa from csv import writer # noqa import datetime -from StringIO import StringIO # noqa +from StringIO import StringIO -from django.conf import settings # noqa from django.http import HttpResponse # noqa from django import template as django_template from django.utils import timezone -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from django import VERSION # noqa from horizon import exceptions diff --git a/openstack_dashboard/usage/quotas.py b/openstack_dashboard/usage/quotas.py index 81e3042b95..be2dc9705d 100644 --- a/openstack_dashboard/usage/quotas.py +++ b/openstack_dashboard/usage/quotas.py @@ -10,11 +10,11 @@ # License for the specific language governing permissions and limitations # under the License. -from collections import defaultdict # noqa +from collections import defaultdict import itertools import logging -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon.utils.memoized import memoized # noqa diff --git a/openstack_dashboard/usage/tables.py b/openstack_dashboard/usage/tables.py index 7dbcbdd3e2..27d897440f 100644 --- a/openstack_dashboard/usage/tables.py +++ b/openstack_dashboard/usage/tables.py @@ -13,7 +13,7 @@ from django.core import urlresolvers from django.template.defaultfilters import floatformat # noqa from django.template.defaultfilters import timesince # noqa -from django.utils.translation import ugettext_lazy as _ # noqa +from django.utils.translation import ugettext_lazy as _ from horizon import tables from horizon.templatetags import sizeformat diff --git a/tox.ini b/tox.ini index 3d3f51ba75..4908ff7832 100644 --- a/tox.ini +++ b/tox.ini @@ -42,3 +42,21 @@ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,p # H702 Formatting operation should be outside of localization method call # H803 git commit title should not end with period (disabled on purpose, see bug #1236621) ignore = E127,E128,H701,H702,H803 + +[hacking] +import_exceptions = collections.defaultdict, + django.conf.settings, + django.core.urlresolvers.reverse, + django.core.urlresolvers.reverse_lazy, + django.template.loader.render_to_string, + django.utils.datastructures.SortedDict, + django.utils.encoding.force_unicode, + django.utils.html.conditional_escape, + django.utils.html.escape, + django.utils.http.urlencode, + django.utils.safestring.mark_safe, + django.utils.translation.pgettext_lazy, + django.utils.translation.ugettext_lazy, + django.utils.translation.ungettext_lazy, + operator.attrgetter, + StringIO.StringIO