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 8d394d651..b413c8a23 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 803c1651a..e7138d8a5 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 362f162b1..37dcf79a7 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 84daa5695..e10a51fab 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 36d8f8a8b..8a76d2053 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 bd5ff4ef2..a33b8fdd3 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 4430e012f..ea1b54335 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 71eaa9ce0..f7996ef21 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 5c510045d..da98aba2a 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 c16b70838..36a40a244 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 8ba257226..e2e033d2c 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 3ac8e93e7..c99b45872 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 d84d4a62a..9174730a8 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 d1ffae3bb..b7414e3de 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 bff4a5c6c..3ddc990c5 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 f993710f1..5d5f25426 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 2a2ad41a0..e6d701b3f 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 56a0713e3..636940666 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 e389bd0b2..81812d900 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 d800e89e4..5ecacb1b6 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 c71733ec1..266f9597e 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 bb7522eb2..8d5576139 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 e32502ced..5223a695f 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 3ad9cfb09..5a9cb3f4a 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 967765a9e..834513d12 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 432b1ac5b..64295475d 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 f1b28e7cc..844fc0bb0 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 98b90907f..a8ab195ad 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 8becf8e90..50c197a8f 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 7ab233c5c..c1c497fb8 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 39f087799..ca600f0a5 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 0451a4861..e30e56fc6 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 7fa86df28..6f1cce2c6 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 2357d4687..94801d81c 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 ae83a1074..f4e1d8913 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 bdfc6ef7c..06c9d9d3a 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 4b9130d32..fd4b0923e 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 f1c60dde9..6cc363306 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 b00521089..fb966fd3e 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 56e7aa2f6..dc0634dfa 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 03207c832..6ef3ab679 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 7840c6a68..59e5b606e 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 4f5deb6a3..169cc5d09 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 a86cead93..a9e7c88ad 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 91f76959a..d9511065a 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 fd8853cf2..dca1d2dff 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 07062c6cb..b5f9b14cb 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 3a875c56b..2612f542c 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 88e47741a..8056dd77f 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 1d10f6d8c..4ad5b829b 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 64f517122..519075ea7 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 1e14b09b3..2f769b029 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 72cfec2c1..5a388eb3f 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 9f7154065..04b00c596 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 6022294db..731d3f227 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 03ab268f0..22bbd4272 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 19b58641c..bbc36d921 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 2a5bb92b2..08cd0aca2 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 ee33e45ee..1f32da2c2 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 f53ffaccd..52de1fcf3 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 2062e668d..5697c68f1 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 aa6cae5e2..156702ef6 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 1d2bbcfa4..b43aa6e7d 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 aca578bd7..56eb8ec97 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 a43b9f30f..52fd1d9f7 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 0ff71af67..aa8d354d6 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 aee78c099..fb6b28e01 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 1c37ac78b..9aef08dea 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 456c7c2e1..9602b4ee2 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 650657860..b2c232249 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 ad6755f04..953c9a3a3 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 5ebf257d0..0595f9145 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 46cc43b64..b5bcb56bd 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 4098a048c..0c6d2b9bb 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 9e4325213..3e4fd5110 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 535c7606f..da25da7cd 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 2e20c4cb4..c8bf84fe3 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 3b3712de2..030f27f38 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 24af3845f..07d5c8f5c 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 0156fa829..a532d39fe 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 8f297244c..9cfceb2af 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 e79ff781f..bbb49f8e9 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 fa45e490e..b4f262a04 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 de8aff8db..22774c6c6 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 844f06d85..b0372131f 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 b740135a8..6f3c16e8a 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 665889d5f..ec846b7da 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 8407c9b80..2b80b153a 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 0ea8cdd77..099d667ed 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 55baaa668..4775fde50 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 982259e40..a1fcef0be 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 bf7b00ef7..409a139df 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 faab7282f..78c8f75ed 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 0028c6943..ec2375786 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 43e3dba1a..2dda32849 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 c9c9e9fc2..1901d211b 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 e957f693b..8eb9757d0 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 5274e9812..477e09b86 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 7880d1556..75af13071 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 714dd9b14..d22a3bf04 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 d7e06f2f8..5415d2e8c 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 e2651069c..9827e01d0 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 75063dbeb..0721305bd 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 ace953d27..65149783f 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 7267d6585..bba4e1fc9 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 f882b4ea5..23af7e808 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 f3bacf0d4..e1ebcd0b7 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 f8969bfa6..69709363f 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 dc9d61892..e593774b3 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 7a0fb798e..685583743 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 fc64a1ac8..cd33286cb 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 d1331cadb..7d5e60c58 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 8ac8d9d81..433cc6686 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 797556cab..a813fa4ac 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 429631c12..5bc486ead 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 a217f71eb..c741aab48 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 d120fa9ae..b2f6ef259 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 701238b12..5b6b7c437 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 71281f11c..8a8005775 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 c68314a0a..8518fe26f 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 a69da8546..67851868e 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 497b720a5..d516e13aa 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 ebbe98968..666e24f3f 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 79415a90a..a2bafb896 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 3641a72f2..091a65872 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 ae2789faa..b34c155c2 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 d943999e3..76a1cef6c 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 83129f283..1477de8d4 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 728560fba..58882ed33 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 9e60b7a99..d8ae6b93a 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 a749b159b..6e4cd6798 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 9820ce867..c84ffb4ad 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 8ce806a95..693a49482 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 6bc4b82ed..9c0562bd6 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 da05b502f..4d005cfef 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 a0f828939..6f4d0c7a0 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 e74d20b0f..11b94c125 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 20b31ea5d..17430ff8e 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 c07dbeb31..f061464dc 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 78fb37b87..d1c30b6a5 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 eb289c86c..14a7016f8 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 2c449507c..1dae3d4b3 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 e83cdae3f..38d149f0c 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 d0673c3ea..1f726d499 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 4b4073f87..9c11a15ed 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 a368477e3..ee4ef1973 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 3ad793a71..cca91c5c1 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 378cc1cac..e29ef6f83 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 3779e53a2..784e3ef06 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 0f9245db7..50121f028 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 68996d5b5..389b439b9 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 0b5acf153..85e53f5f6 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 7d1029c3a..f3142772d 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 08bcdb5e5..4811fd302 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 ea9766c3a..a217f5330 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 a49e1b515..a01c866b1 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 a73067d9e..2a5c4e2ee 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 d1d4fdd9d..f44db9c52 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 4af3ec820..7137e7d4e 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 f591ce648..270556434 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 011cd587f..831871652 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 1a0c581d9..01b5c64ec 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 ee4fb793d..0d1481b0c 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 db907f31d..4cb363c86 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 93afa1c80..73101c37d 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 d54bec57c..f19e19cb8 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 576cd25f5..f8f900c3d 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 5c402059f..51ac527a8 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 1bdaee63c..8f76857ef 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 4df61b18f..c43458712 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 334edab44..c2b7ca0f5 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 68888a99e..1a1f644f0 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 ba339cdd3..1bd4739b9 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 d2cbd8651..997c9cbdd 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 6813f6106..299ec4461 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 e7a290f9b..4ad1188dd 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 ad26ac5ef..bc4cb507c 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 408cb3fac..7e001675c 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 8e5578df0..bd9c34fdf 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 a65c16a22..84e2a920c 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 12c21f1eb..73fa60f02 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 dcd594fee..87a249b31 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 86430ffa0..c204973ed 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 7f4e1e749..ac028bec0 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 362cbd86f..4caa7d4be 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 78e60ef16..8d8a38478 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 55050f9e1..534cb1cae 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 29c32ed7f..34ec075a7 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 aeb099a50..72d584955 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 5a09d1154..507834aaf 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 816a68f8d..3ae9b1421 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 3077da82f..fc7f3c6c6 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 522121c06..23565c683 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 36a3f05d7..e5e373b82 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 ea16d646c..d77684325 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 e25c10611..8e88f53c4 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 8699c95b4..004dd4604 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 8b7fd4d40..de32911e8 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 33163a324..4277da735 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 918cb4f12..36a12709d 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 291aaa8b1..cca07652e 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 0d4bd8841..58976a02b 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 a40b0cda3..24fdaab91 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 ea4b90a34..96b472eff 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 5bbd597ec..d3e7c0e72 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 f35cf39c0..3b87c37a0 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 61371c440..ceca67363 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 a2b6b0b17..8807377e0 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 3e89169d8..40139cdff 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 e56b70af0..5b570829d 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 855c2815a..db0849a08 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 581ae405e..367ae5b05 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 13f328253..880906588 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 9d2919ef1..26bc4d52a 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 bc4ba3da3..4aba3aee7 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 54180f195..45d60573e 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 d3354315b..7ec447b4f 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 094a9a8c2..2007feb64 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 a1a00b1ae..fc58eb110 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 fdb4eb3a1..e3faf8c84 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 5d37b6bb9..903e5b8d4 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 061d975c3..30cc6114e 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 0658ae4c3..acb05c217 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 6f7fd4aef..fe5cc1a06 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 3bca87dd7..fbaf831ed 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 5dea6b70b..5bf24e8e6 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 02d20501f..44e62b711 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 3ff7ef940..1b310b532 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 175ad49b2..611039e67 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 8cb67a18d..eb7d764ae 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 e79e6d6d9..e1f50db62 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 be707ba81..8ee964f2d 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 b3ebb835f..779020c9b 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 23cc7cda7..c640c75d7 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 c6e5acf93..21f450580 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 cf0b4be84..7d9765732 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 ef6a701bd..aae990c4c 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 15ef83388..935975be6 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 016e8e7c5..7f29e2b67 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 b0e006a54..7f760d4e1 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 dd3b646b4..f700fdd59 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 5684f1976..351e63cf6 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 9238440ea..4798ea82e 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 69b215f13..5310654d0 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 ec22a1810..9ec17b63f 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 32b428061..7c3d1a3f5 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 d358d8032..f45c95308 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 de306debf..003182f42 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 0d22b7c02..3b096e6dd 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 6fbedc175..a4102eec6 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 a6b092cd9..d1cf5e7aa 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 c680db6d2..a0589ecf4 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 e84c35249..1e2473e02 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 1bbcbddae..5aee5b7ec 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 e5c16d4aa..d876c39a4 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 cc3828f51..c4cf6406c 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 28f8b980a..00f08b0ad 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 f8cb5caca..5ad3b422e 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 30408a96e..38f6a70c7 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 0f23c1974..f9615ba9d 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 5cc736161..25798067d 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 063341865..863393e12 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 1e5b6eff6..f69005f59 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 d26873f55..fccfa4757 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 6ba67b5db..ede57a7ce 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 1d0e5f4f0..635fe321b 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 ee3355f11..2003f1ba4 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 9f68fe612..1231c78be 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 698a5bc71..3c50ea6c1 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 1657624a9..7cd4bd122 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 6e41ca61f..379fad3dd 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 9871152b3..86f0da019 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 6c19433a4..38d79d4e0 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 19ec38575..569121e83 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 c0250186d..d5d991523 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 9515b94fd..2eebbcca9 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 c6a166121..8a0732bfd 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 8879f172a..b7895c9ee 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 0db9ec236..33fd145d9 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 81e3042b9..be2dc9705 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 7dbcbdd3e..27d897440 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 3d3f51ba7..4908ff783 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