Bump hacking
The version currently used is too old. Change-Id: I4b8163ce2766198636924c33f9a88576cd09a96f
This commit is contained in:
parent
77271725d6
commit
4d68bd630b
|
@ -139,7 +139,7 @@ def no_log_warn(logical_line):
|
||||||
O339
|
O339
|
||||||
"""
|
"""
|
||||||
if logical_line.startswith('LOG.warn('):
|
if logical_line.startswith('LOG.warn('):
|
||||||
yield(0, "O339:Use LOG.warning() rather than LOG.warn()")
|
yield (0, "O339:Use LOG.warning() rather than LOG.warn()")
|
||||||
|
|
||||||
|
|
||||||
@core.flake8ext
|
@core.flake8ext
|
||||||
|
@ -149,7 +149,7 @@ def no_xrange(logical_line):
|
||||||
O340
|
O340
|
||||||
"""
|
"""
|
||||||
if assert_no_xrange_re.match(logical_line):
|
if assert_no_xrange_re.match(logical_line):
|
||||||
yield(0, "O340: Do not use xrange().")
|
yield (0, "O340: Do not use xrange().")
|
||||||
|
|
||||||
|
|
||||||
@core.flake8ext
|
@core.flake8ext
|
||||||
|
@ -213,7 +213,7 @@ def check_no_basestring(logical_line):
|
||||||
if re.search(r"\bbasestring\b", logical_line):
|
if re.search(r"\bbasestring\b", logical_line):
|
||||||
msg = ("O343: basestring is not Python3-compatible, use "
|
msg = ("O343: basestring is not Python3-compatible, use "
|
||||||
"six.string_types instead.")
|
"six.string_types instead.")
|
||||||
yield(0, msg)
|
yield (0, msg)
|
||||||
|
|
||||||
|
|
||||||
@core.flake8ext
|
@core.flake8ext
|
||||||
|
|
|
@ -78,8 +78,8 @@ def check_member_attrs(attrs):
|
||||||
_validate_TCP_UDP_SCTP_port_range(attrs['member_port'], 'member-port')
|
_validate_TCP_UDP_SCTP_port_range(attrs['member_port'], 'member-port')
|
||||||
|
|
||||||
if 'weight' in attrs:
|
if 'weight' in attrs:
|
||||||
if(attrs['weight'] < constants.MIN_WEIGHT or
|
if (attrs['weight'] < constants.MIN_WEIGHT or
|
||||||
attrs['weight'] > constants.MAX_WEIGHT):
|
attrs['weight'] > constants.MAX_WEIGHT):
|
||||||
msg = ("Invalid input for field/attribute 'weight', Value: "
|
msg = ("Invalid input for field/attribute 'weight', Value: "
|
||||||
"'{weight}'. Value must be between {wmin} and "
|
"'{weight}'. Value must be between {wmin} and "
|
||||||
"{wmax}.".format(weight=attrs['weight'],
|
"{wmax}.".format(weight=attrs['weight'],
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
hacking>=6.1.0,<6.2.0 # Apache-2.0
|
||||||
requests-mock>=1.2.0 # Apache-2.0
|
requests-mock>=1.2.0 # Apache-2.0
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
doc8>=0.6.0 # Apache-2.0
|
doc8>=0.6.0 # Apache-2.0
|
||||||
Pygments>=2.2.0 # BSD license
|
Pygments>=2.2.0 # BSD license
|
||||||
bandit!=1.6.0,>=1.1.0 # Apache-2.0
|
bandit!=1.6.0,>=1.1.0 # Apache-2.0
|
||||||
flake8-import-order==0.12 # LGPLv3
|
flake8-import-order>=0.18.0,<0.19.0 # LGPLv3
|
||||||
pylint>=2.5.3 # GPLv2
|
pylint>=2.5.3 # GPLv2
|
||||||
python-subunit>=1.0.0 # Apache-2.0/BSD
|
python-subunit>=1.0.0 # Apache-2.0/BSD
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -88,7 +88,8 @@ commands =
|
||||||
[flake8]
|
[flake8]
|
||||||
# [H104]: Empty file with only comments
|
# [H104]: Empty file with only comments
|
||||||
# [W504]: Line break after binary operator
|
# [W504]: Line break after binary operator
|
||||||
ignore = H104,W504
|
# [I202]: Additional newline in a group of imports.
|
||||||
|
ignore = H104,W504,I202
|
||||||
show-source = true
|
show-source = true
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
|
|
Loading…
Reference in New Issue