From c9eff7caf224a37633e478488e5b5249e41b87a5 Mon Sep 17 00:00:00 2001 From: jacky06 Date: Fri, 4 Jan 2019 23:26:17 +0800 Subject: [PATCH] Update hacking version to latest Use latest release 1.1.0 and compatible changes w.r.t pep8 Change-Id: I7d0661b59684271d08e240299a2a23a6d16da95d --- test-requirements.txt | 2 +- vitrage_dashboard/api/vitrage.py | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 2d69ec6..717ad6a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,7 +2,7 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0 +hacking>=1.1.0,<1.2.0 # Apache-2.0 coverage>=3.6 python-subunit>=0.0.18 diff --git a/vitrage_dashboard/api/vitrage.py b/vitrage_dashboard/api/vitrage.py index a60f029..17145fe 100644 --- a/vitrage_dashboard/api/vitrage.py +++ b/vitrage_dashboard/api/vitrage.py @@ -12,6 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. +import json +import logging +import tempfile + +from horizon.utils.memoized import memoized +from keystoneauth1.identity.generic.token import Token +from keystoneauth1.session import Session +from openstack_dashboard.api import base +from vitrageclient import client as vitrage_client + """ https://docs.openstack.org/horizon/latest/contributor/tutorials/plugin.html """ @@ -22,15 +32,6 @@ https://docs.openstack.org/horizon/latest/contributor/tutorials/plugin.html While interactions with the service can be handled in the views.py, isolating the logic is an established pattern in Horizon. """ -from horizon.utils.memoized import memoized # noqa -import json -from keystoneauth1.identity.generic.token import Token -from keystoneauth1.session import Session -from openstack_dashboard.api import base -import tempfile -from vitrageclient import client as vitrage_client - -import logging LOG = logging.getLogger(__name__)