Cap maximal cyclomatic complexity
flake8 has support for cyclomatic complexity (Mccabe) currently our worst offender has a complexity of 28. So set our max-complexity to 29 so that don't make things any worse. https://github.com/flintwork/mccabe Change-Id: Ib6db9de92b3e6e196008580318a2139976610349
This commit is contained in:
parent
5fedeb2af4
commit
3fd52a5a0b
2
tox.ini
2
tox.ini
|
@ -41,3 +41,5 @@ show-source = True
|
||||||
ignore = E123,E125,H803
|
ignore = E123,E125,H803
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,*autogenerate_config_docs/venv,*autogenerate_config_docs/sources
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,*autogenerate_config_docs/venv,*autogenerate_config_docs/sources
|
||||||
|
# 28 is currently the most complex thing we have
|
||||||
|
max-complexity=29
|
||||||
|
|
Loading…
Reference in New Issue