Update hacking package, fix/ignore new style errors

Change-Id: I49d26c3a9772c409b038b06e8256fb5823169c50
Implements: blueprint update-hacking
This commit is contained in:
Jordan Cazamias 2014-07-01 17:10:35 -05:00
parent 5726896585
commit 9d4544fd51
7 changed files with 21 additions and 7 deletions

View File

@ -14,10 +14,10 @@
# License for the specific language governing permissions and limitations
# under the License.
from requests.auth import AuthBase
from urlparse import urlparse
from keystoneclient.v2_0.client import Client
from requests.auth import AuthBase
class KeystoneAuth(AuthBase):

View File

@ -14,13 +14,15 @@
# License for the specific language governing permissions and limitations
# under the License.
import abc
from cliff.command import Command as CliffCommand
from cliff.lister import Lister
from cliff.show import ShowOne
import six
from designateclient import exceptions
from designateclient import utils
from designateclient.v1 import Client
import six
@six.add_metaclass(abc.ABCMeta)

View File

@ -19,6 +19,7 @@ import os
from cliff.app import App
from cliff.commandmanager import CommandManager
from designateclient.version import version_info as version

View File

@ -14,10 +14,10 @@
# License for the specific language governing permissions and limitations
# under the License.
import os
import pkg_resources
import json
import os
import pkg_resources
from designateclient import exceptions

View File

@ -14,6 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import abc
import six

View File

@ -1,5 +1,5 @@
# Hacking already pins down pep8, pyflakes and flake8
hacking>=0.8.0,<0.9
hacking>=0.9.2,<0.10
coverage>=3.6
discover
python-subunit>=0.0.18

12
tox.ini
View File

@ -33,6 +33,16 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = {posargs}
[flake8]
ignore = H302,H401,H402,H404
# ignored flake8 codes:
# H104 file contains nothing more than comments
# H302 import only modules
# H401 docstring should not start with a space
# H402 one line docstring needs punctuation
# H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line
# H904 Wrap long lines in parentheses instead of a backslash
# See designate for other ignored codes that may apply here
ignore = H104,H302,H401,H402,H404,H405,H904
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools