Use hacking import_exceptions for gettextutils._

Instead of using # noqa every time gettextutils._ is used, add an
exception in tox.ini

Change-Id: I0eb74a162568bf4f320682402e2dc63feadf675e
This commit is contained in:
Sergey Skripnick
2013-12-26 12:28:00 +02:00
parent e44e50d167
commit 79a35c2ef1
14 changed files with 15 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ from rally.benchmark import base
from rally.benchmark import utils
from rally import consts
from rally import exceptions
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
from rally import utils as rutils

View File

@@ -24,7 +24,7 @@ import uuid
from rally.benchmark import base
from rally.benchmark import cleanup_utils
from rally import exceptions as rally_exceptions
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
from rally import osclients
from rally import utils

View File

@@ -22,7 +22,7 @@ from oslo.config import cfg
from rally.openstack.common.apiclient import exceptions
from rally.openstack.common import cliutils
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
from rally import version

View File

@@ -25,7 +25,7 @@ import prettytable
from rally.cmd import cliutils
from rally import db
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.orchestrator import api
from rally import processing

View File

@@ -21,7 +21,6 @@ import sys
from rally.cmd import cliutils
from rally import db
from rally.openstack.common.gettextutils import _ # noqa
class DBCommands(object):

View File

@@ -18,7 +18,7 @@ import jsonschema
from rally import consts
from rally import exceptions
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
from rally import utils

View File

@@ -17,7 +17,7 @@ import os
import tempfile
from rally.deploy import engine
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
from rally.serverprovider import provider
from rally import utils

View File

@@ -17,7 +17,7 @@
from oslo.config import cfg
import sys
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
LOG = logging.getLogger(__name__)

View File

@@ -17,7 +17,7 @@ import netaddr
import os
import uuid
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
from rally.serverprovider import provider
from rally import utils

View File

@@ -19,7 +19,7 @@ import urllib2
from rally.benchmark import utils as benchmark_utils
from rally import exceptions
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
from rally import osclients
from rally.serverprovider import provider

View File

@@ -23,7 +23,7 @@ import string
import time
from rally import exceptions
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import log as logging
LOG = logging.getLogger(__name__)

View File

@@ -22,7 +22,7 @@ import time
import traceback
from rally import exceptions
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally.openstack.common import importutils

View File

@@ -23,7 +23,7 @@ import sys
import time
from rally import exceptions
from rally.openstack.common.gettextutils import _ # noqa
from rally.openstack.common.gettextutils import _
from rally import test
from rally import utils

View File

@@ -33,3 +33,6 @@ ignore = E126,H703
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
[hacking]
import_exceptions = openstack.common.gettextutils._