Bump hacking
hacking 3.0.x is too old. This also pulls the hacking options from neutron. Change-Id: Ic1a428a05131f98d5a9050b83613c5478904f202
This commit is contained in:
parent
8ae44f83f5
commit
2d93d2e1ed
@ -138,7 +138,7 @@ def str2dict(strdict, required_keys=None, optional_keys=None):
|
|||||||
msg = _("missing value for key '%s'")
|
msg = _("missing value for key '%s'")
|
||||||
raise argparse.ArgumentTypeError(msg % kv)
|
raise argparse.ArgumentTypeError(msg % kv)
|
||||||
else:
|
else:
|
||||||
kvlist[i-1] = "%s,%s" % (kvlist[i-1], kv)
|
kvlist[i - 1] = "%s,%s" % (kvlist[i - 1], kv)
|
||||||
for kv in kvlist:
|
for kv in kvlist:
|
||||||
key, sep, value = kv.partition('=')
|
key, sep, value = kv.partition('=')
|
||||||
if not sep:
|
if not sep:
|
||||||
|
@ -213,8 +213,8 @@ def _validate_destination_chains(comma_split, attrs, client, sc_):
|
|||||||
dc_ = client.find_sfc_port_chain(e, ignore_missing=False)['id']
|
dc_ = client.find_sfc_port_chain(e, ignore_missing=False)['id']
|
||||||
attrs['port_chains'][sc_].append(dc_)
|
attrs['port_chains'][sc_].append(dc_)
|
||||||
if _check_cycle(attrs['port_chains'], sc_, dc_):
|
if _check_cycle(attrs['port_chains'], sc_, dc_):
|
||||||
raise(exceptions.CommandError(
|
raise exceptions.CommandError(
|
||||||
"Error: Service graph contains a cycle"))
|
"Error: Service graph contains a cycle")
|
||||||
else:
|
else:
|
||||||
raise exceptions.CommandError(
|
raise exceptions.CommandError(
|
||||||
"Error: you must specify at least one "
|
"Error: you must specify at least one "
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
# Requirements lower bounds listed here are our best effort to keep them up to
|
# Requirements lower bounds listed here are our best effort to keep them up to
|
||||||
# date but we do not test them so no guarantee of having them all correct. If
|
# date but we do not test them so no guarantee of having them all correct. If
|
||||||
# you find any incorrect lower bounds, let us know or propose a fix.
|
# you find any incorrect lower bounds, let us know or propose a fix.
|
||||||
|
|
||||||
# The order of packages is significant, because pip processes them in the order
|
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
|
||||||
# process, which may cause wedges in the gate later.
|
|
||||||
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
||||||
cliff>=3.4.0 # Apache-2.0
|
cliff>=3.4.0 # Apache-2.0
|
||||||
debtcollector>=1.2.0 # Apache-2.0
|
debtcollector>=1.2.0 # Apache-2.0
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
# The order of packages is significant, because pip processes them in the order
|
hacking>=6.1.0,<6.2.0 # Apache-2.0
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
|
||||||
# process, which may cause wedges in the gate later.
|
|
||||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
|
||||||
|
|
||||||
bandit!=1.6.0,>=1.1.0 # Apache-2.0
|
bandit!=1.6.0,>=1.1.0 # Apache-2.0
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
flake8-import-order==0.12 # LGPLv3
|
flake8-import-order>=0.18.0,<0.19.0 # LGPLv3
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
osprofiler>=2.3.0 # Apache-2.0
|
osprofiler>=2.3.0 # Apache-2.0
|
||||||
python-openstackclient>=3.12.0 # Apache-2.0
|
python-openstackclient>=3.12.0 # Apache-2.0
|
||||||
|
15
tox.ini
15
tox.ini
@ -66,12 +66,25 @@ deps =
|
|||||||
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
# E126 continuation line over-indented for hanging indent
|
||||||
|
# E128 continuation line under-indented for visual indent
|
||||||
|
# H405 multi line docstring summary not separated with an empty line
|
||||||
|
# I202 Additional newline in a group of imports
|
||||||
|
# N530 direct neutron imports not allowed
|
||||||
|
# TODO(amotoki) check the following new rules should be fixed or ignored
|
||||||
|
# E731 do not assign a lambda expression, use a def
|
||||||
|
# W504 line break after binary operator
|
||||||
|
ignore = E126,E128,E731,I202,H405,N530,W504
|
||||||
show-source = true
|
show-source = true
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|
||||||
import-order-style = pep8
|
import-order-style = pep8
|
||||||
|
|
||||||
|
# H106: Don't put vim configuration in source files
|
||||||
|
# H203: Use assertIs(Not)None to check for None
|
||||||
|
# H204: Use assert(Not)Equal to check for equality
|
||||||
|
# H205: Use assert(Greater|Less)(Equal) for comparison
|
||||||
# H904: Delay string interpolations at logging calls
|
# H904: Delay string interpolations at logging calls
|
||||||
enable-extensions=H904
|
enable-extensions=H106,H203,H204,H205,H904
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
# B303: blacklist calls: md5, sha1
|
# B303: blacklist calls: md5, sha1
|
||||||
|
Loading…
Reference in New Issue
Block a user