Update hacking version

Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I379e5684ada1b0c961260f2017543479080f8c23
This commit is contained in:
ZhijunWei 2019-01-05 00:42:37 +08:00
parent 51de6802f1
commit 3815e94721
7 changed files with 9 additions and 8 deletions

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from ansible.module_utils.basic import * # noqa
from ansible.module_utils.basic import AnsibleModule # noqa
def main():

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from ansible.module_utils.basic import * # noqa
from ansible.module_utils.basic import AnsibleModule # noqa
def main():

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from ansible.module_utils.basic import * # noqa
from ansible.module_utils.basic import AnsibleModule # noqa
def main():

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from ansible.module_utils.basic import * # noqa
from ansible.module_utils.basic import AnsibleModule # noqa
STRESSORS_MAP = {
'cpu': '--cpu 0',

View File

@ -20,5 +20,5 @@ def public(func):
def is_public(obj):
return ((inspect.isfunction(obj) or inspect.ismethod(obj))
and hasattr(obj, '__public__'))
return ((inspect.isfunction(obj) or inspect.ismethod(obj)) and
hasattr(obj, '__public__'))

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
pytest<=3.0.2,>=2.7 # MIT
pytest-cov<=2.3.1,>=2.2.1 # MIT
pytest-html<=1.10.0,>=1.10.0 # Mozilla Public License 2.0 (MPL 2.0)

View File

@ -99,6 +99,7 @@ commands = {[testenv:debug]commands}
[flake8]
# E123 skipped because it is ignored by default in the default pep8.
# E125 skipped until https://github.com/jcrocholl/pep8/issues/126 is resolved.
ignore = E123,E125
# E731 skipped as assign a lambda expression
ignore = E123,E125,E731
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build