Merge "flake8: Specify 'nova' as name of app"

This commit is contained in:
Jenkins
2017-03-21 18:11:06 +00:00
committed by Gerrit Code Review
9 changed files with 12 additions and 12 deletions

View File

@@ -18,12 +18,12 @@ import logging as py_logging
import os import os
import os.path import os.path
from oslo_log import log as logging
from nova.api.openstack.placement import deploy from nova.api.openstack.placement import deploy
from nova import conf from nova import conf
from nova import config from nova import config
from oslo_log import log as logging
CONFIG_FILE = 'nova.conf' CONFIG_FILE = 'nova.conf'

View File

@@ -13,11 +13,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from nova.conf import paths
from oslo_config import cfg from oslo_config import cfg
from oslo_db import options as oslo_db_options from oslo_db import options as oslo_db_options
from nova.conf import paths
_DEFAULT_SQL_CONNECTION = 'sqlite:///' + paths.state_path_def('nova.sqlite') _DEFAULT_SQL_CONNECTION = 'sqlite:///' + paths.state_path_def('nova.sqlite')

View File

@@ -13,10 +13,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from nova.conf import paths
from oslo_config import cfg from oslo_config import cfg
from nova.conf import paths
xvp_group = cfg.OptGroup( xvp_group = cfg.OptGroup(
'xvp', 'xvp',
title='XVP options', title='XVP options',

View File

@@ -15,6 +15,7 @@
import datetime import datetime
import iso8601 import iso8601
from oslo_config import cfg
from nova.api.openstack.compute import availability_zone as az_v21 from nova.api.openstack.compute import availability_zone as az_v21
from nova.api.openstack.compute import extension_info from nova.api.openstack.compute import extension_info
@@ -30,7 +31,6 @@ from nova.tests.unit.api.openstack import fakes
from nova.tests.unit.image import fake from nova.tests.unit.image import fake
from nova.tests.unit import matchers from nova.tests.unit import matchers
from nova.tests.unit.objects import test_service from nova.tests.unit.objects import test_service
from oslo_config import cfg
FAKE_UUID = fakes.FAKE_UUID FAKE_UUID = fakes.FAKE_UUID

View File

@@ -11,6 +11,7 @@
# under the License. # under the License.
import mock import mock
from oslo_serialization import jsonutils
import six import six
import testscenarios import testscenarios
import webob import webob
@@ -24,7 +25,6 @@ from nova import test
from nova.tests.unit.api.openstack import fakes from nova.tests.unit.api.openstack import fakes
from nova.tests.unit import matchers from nova.tests.unit import matchers
from nova.tests.unit import utils from nova.tests.unit import utils
from oslo_serialization import jsonutils
class MicroversionedTest(testscenarios.WithScenarios, test.NoDBTestCase): class MicroversionedTest(testscenarios.WithScenarios, test.NoDBTestCase):

View File

@@ -18,6 +18,7 @@ import copy
import mock import mock
from oslo_serialization import jsonutils from oslo_serialization import jsonutils
import testtools
from nova.api.openstack.compute import services from nova.api.openstack.compute import services
from nova.cells import utils as cells_utils from nova.cells import utils as cells_utils
@@ -32,7 +33,6 @@ from nova.tests.unit.api.openstack import fakes
from nova.tests.unit import fake_notifier from nova.tests.unit import fake_notifier
from nova.tests.unit.objects import test_objects from nova.tests.unit.objects import test_objects
from nova.tests.unit.objects import test_service from nova.tests.unit.objects import test_service
import testtools
class ComputeHostAPITestCase(test.TestCase): class ComputeHostAPITestCase(test.TestCase):

View File

@@ -13,13 +13,13 @@
# under the License. # under the License.
import mock import mock
from oslo_versionedobjects import fixture as ovo_fixture
from nova import db from nova import db
from nova.objects import instance from nova.objects import instance
from nova.objects import security_group from nova.objects import security_group
from nova.tests.unit.objects import test_objects from nova.tests.unit.objects import test_objects
from nova.tests import uuidsentinel as uuids from nova.tests import uuidsentinel as uuids
from oslo_versionedobjects import fixture as ovo_fixture
fake_secgroup = { fake_secgroup = {

View File

@@ -16,6 +16,7 @@
from cinderclient import exceptions as cinder_exception from cinderclient import exceptions as cinder_exception
from keystoneclient import exceptions as keystone_exception from keystoneclient import exceptions as keystone_exception
import mock import mock
from oslo_utils import timeutils
import nova.conf import nova.conf
from nova import context from nova import context
@@ -25,8 +26,6 @@ from nova.tests.unit.fake_instance import fake_instance_obj
from nova.tests import uuidsentinel as uuids from nova.tests import uuidsentinel as uuids
from nova.volume import cinder from nova.volume import cinder
from oslo_utils import timeutils
CONF = nova.conf.CONF CONF = nova.conf.CONF

View File

@@ -171,6 +171,7 @@ enable-extensions = H106,H203,H904
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405 ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools/xenserver*,releasenotes exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools/xenserver*,releasenotes
import-order-style = pep8 import-order-style = pep8
application-import-names = nova
# To get a list of functions that are more complex than 25, set max-complexity # To get a list of functions that are more complex than 25, set max-complexity
# to 25 and run 'tox -epep8'. # to 25 and run 'tox -epep8'.
# 34 is currently the most complex thing we have # 34 is currently the most complex thing we have