Pep8 didn't check api/openstack/common.py
flake8 rule in tox.ini has following exclude rule is exclude = .venv,.git,.tox,dist,doc,*openstack/common* which excludes api/openstack/common.py Change-Id: I39b82cf90048970e7bfc6be77de2e1543130f81b Closes-Bug: 1498634
This commit is contained in:
parent
ff412c3888
commit
eef23489ee
@ -101,7 +101,7 @@ _STATE_MAP = {
|
|||||||
'default': 'VERIFY_RESIZE',
|
'default': 'VERIFY_RESIZE',
|
||||||
# Note(maoy): the OS API spec 1.1 doesn't have CONFIRMING_RESIZE
|
# Note(maoy): the OS API spec 1.1 doesn't have CONFIRMING_RESIZE
|
||||||
# state so we comment that out for future reference only.
|
# state so we comment that out for future reference only.
|
||||||
#task_states.RESIZE_CONFIRMING: 'CONFIRMING_RESIZE',
|
# task_states.RESIZE_CONFIRMING: 'CONFIRMING_RESIZE',
|
||||||
task_states.RESIZE_REVERTING: 'REVERT_RESIZE',
|
task_states.RESIZE_REVERTING: 'REVERT_RESIZE',
|
||||||
},
|
},
|
||||||
vm_states.PAUSED: {
|
vm_states.PAUSED: {
|
||||||
|
2
tox.ini
2
tox.ini
@ -174,7 +174,7 @@ commands = bandit -c bandit.yaml -r nova -n 5 -ll
|
|||||||
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
|
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
|
||||||
|
|
||||||
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
|
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
|
||||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools/xenserver*
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common/*,*lib/python*,*egg,build,tools/xenserver*
|
||||||
# To get a list of functions that are more complex than 25, set max-complexity
|
# To get a list of functions that are more complex than 25, set max-complexity
|
||||||
# to 25 and run 'tox -epep8'.
|
# to 25 and run 'tox -epep8'.
|
||||||
# 34 is currently the most complex thing we have
|
# 34 is currently the most complex thing we have
|
||||||
|
Loading…
x
Reference in New Issue
Block a user