Enable pep8 E711/E712/E721/H302 checking

Change-Id: I229f1c15b46284fae94d4c786765baa18da0055f
This commit is contained in:
Lianhao Lu
2013-11-22 10:57:11 +08:00
parent f80b29a6c3
commit 640d6f4ff4
3 changed files with 6 additions and 6 deletions

View File

@@ -16,12 +16,8 @@
import copy
import logging
import os
import six
import socket
from ceilometerclient.openstack.common.py3kcompat import urlutils
from six.moves import http_client as httplib
try:
import ssl
except ImportError:
@@ -33,8 +29,11 @@ try:
except ImportError:
import simplejson as json
import six
from six.moves import http_client as httplib # noqa
from ceilometerclient import exc
from ceilometerclient.openstack.common.py3kcompat import urlutils
LOG = logging.getLogger(__name__)

View File

@@ -17,12 +17,13 @@
# under the License.
import copy
import six
from six.moves import xrange # noqa
import testtools
from ceilometerclient.tests import utils
from ceilometerclient.v2 import alarms
from six.moves import xrange
AN_ALARM = {u'alarm_actions': [u'http://site:8000/alarm'],
u'ok_actions': [u'http://site:8000/ok'],

View File

@@ -24,6 +24,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = {posargs}
[flake8]
ignore = E711,E721,E712,H233,H302
ignore = H233
show-source = True
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools