Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8 Change-Id: Ide3a556918f341de6eafecb36ca431da40a0aed0 Closes-Bug: #1815715
This commit is contained in:
parent
4eb61941f8
commit
1803b63823
@ -1,4 +1,4 @@
|
||||
oslo.utils Style Commandments
|
||||
======================================================
|
||||
=============================
|
||||
|
||||
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/
|
||||
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/
|
||||
|
@ -208,8 +208,8 @@ def get_callable_args(function, required_only=False):
|
||||
sig = get_signature(function)
|
||||
function_args = list(six.iterkeys(sig.parameters))
|
||||
for param_name, p in six.iteritems(sig.parameters):
|
||||
if (p.kind in (Parameter.VAR_POSITIONAL, Parameter.VAR_KEYWORD)
|
||||
or (required_only and p.default is not Parameter.empty)):
|
||||
if (p.kind in (Parameter.VAR_POSITIONAL, Parameter.VAR_KEYWORD) or
|
||||
(required_only and p.default is not Parameter.empty)):
|
||||
function_args.remove(param_name)
|
||||
return function_args
|
||||
|
||||
|
@ -554,8 +554,8 @@ def split_by_commas(value):
|
||||
|
||||
.. versionadded:: 3.17
|
||||
"""
|
||||
word = (pp.QuotedString(quoteChar='"', escChar='\\')
|
||||
| pp.Word(pp.printables, excludeChars='",'))
|
||||
word = (pp.QuotedString(quoteChar='"', escChar='\\') |
|
||||
pp.Word(pp.printables, excludeChars='",'))
|
||||
grammar = pp.stringStart + pp.delimitedList(word) + pp.stringEnd
|
||||
|
||||
try:
|
||||
|
@ -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
|
||||
|
||||
eventlet>=0.18.2,!=0.18.3,!=0.20.1,!=0.21.0,!=0.23.0 # MIT
|
||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||
|
Loading…
Reference in New Issue
Block a user