Fix pep8 errors in tacker-horizon
This Patch fixes flake8 errors and enables this tests for all new patches to tacker-horizon. F401 imported but unused see OpenStack Style Guidelines http://docs.openstack.org/developer/hacking/ Change-Id: I98ffe1dac2de156ed2766be8f32a931ccd9a2aa0 Partial-Bug: #1531680
This commit is contained in:
@@ -14,24 +14,13 @@
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import collections
|
||||
import logging
|
||||
|
||||
import netaddr
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.datastructures import SortedDict
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from neutronclient.common import exceptions as neutron_exc
|
||||
from neutronclient.v2_0 import client as neutron_client
|
||||
from tackerclient.v1_0 import client as tacker_client
|
||||
|
||||
from horizon import messages
|
||||
from horizon.utils.memoized import memoized # noqa
|
||||
from openstack_dashboard.api import base
|
||||
from openstack_dashboard.api import network_base
|
||||
from openstack_dashboard.api import nova
|
||||
from openstack_dashboard import policy
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@@ -12,8 +12,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.forms import ValidationError
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
@@ -23,8 +21,6 @@ from horizon import messages
|
||||
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
|
||||
import yaml
|
||||
|
||||
|
||||
class OnBoardVNF(forms.SelfHandlingForm):
|
||||
name = forms.CharField(max_length=80, label=_("Name"), required=False)
|
||||
|
@@ -15,8 +15,6 @@
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
import uuid
|
||||
|
||||
from horizon import exceptions
|
||||
from horizon import tabs
|
||||
|
||||
|
@@ -13,7 +13,6 @@
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
import yaml
|
||||
|
||||
from django.forms import ValidationError
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
@@ -17,14 +17,9 @@ 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
|
||||
from horizon import tabs
|
||||
|
||||
from horizon.utils import memoized
|
||||
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager \
|
||||
import forms as project_forms
|
||||
|
||||
|
@@ -13,7 +13,6 @@
|
||||
# under the License.
|
||||
|
||||
from django.conf import urls
|
||||
from django.views import generic
|
||||
|
||||
import openstack_dashboard.urls
|
||||
|
||||
|
Reference in New Issue
Block a user