From f8dd975b964b648f3a29f691746af00e134421c0 Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Fri, 17 Oct 2014 15:55:10 +0200 Subject: [PATCH] Put a cap on our cyclomatic complexity flake8 has support for cyclomatic complexity (Mccabe) currently our worst offender has a complexity of 15 (25 is considered very bad). So set our max-complexity to 16 so we at least don't make things any worse. https://github.com/flintwork/mccabe Change-Id: Ied156f42aaee351f0023ea7dc38bb307ccdbf098 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 4d099bef4..855dd1162 100644 --- a/tox.ini +++ b/tox.ini @@ -57,6 +57,9 @@ commands = python setup.py build_sphinx [flake8] exclude = .venv*,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*.egg,.update-venv +# NOTE(flaper87): Our currently max-complexity is 15. Not sure what the ideal complexity +# for Zaqar should be but lets keep it to the minimum possible. +max-complexity = 16 [hacking] import_exceptions = zaqar.openstack.common.gettextutils._,zaqar.i18n._