Update hacking package, fix/ignore new style errors
Change-Id: I49d26c3a9772c409b038b06e8256fb5823169c50 Implements: blueprint update-hacking
This commit is contained in:
parent
5726896585
commit
9d4544fd51
@ -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):
|
||||
|
@ -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)
|
||||
|
@ -19,6 +19,7 @@ import os
|
||||
|
||||
from cliff.app import App
|
||||
from cliff.commandmanager import CommandManager
|
||||
|
||||
from designateclient.version import version_info as version
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import abc
|
||||
|
||||
import six
|
||||
|
||||
|
||||
|
@ -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
12
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user