From 8dd28e3ac70f06762408ff4987731c16a202cac1 Mon Sep 17 00:00:00 2001 From: Yathiraj Udupi Date: Tue, 26 May 2015 16:00:30 -0700 Subject: [PATCH] Updated tox.ini flake8 cfg to match nova project Change-Id: I317d58a09d7213b2fce4dcc916b045a09afd7748 --- tox.ini | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 8aa9966..be4c0e9 100644 --- a/tox.ini +++ b/tox.ini @@ -29,9 +29,15 @@ commands = python setup.py build_sphinx commands = oslo_debug_helper {posargs} [flake8] -# E123, E125 skipped as they are invalid PEP-8. +# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126 +# The rest of the ignores are TODOs +# New from hacking 0.9: E129, E131, H407, H405 +# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301 -show-source = True -ignore = E123,E125 -builtins = _ -exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build +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* +# To get a list of functions that are more complex than 25, set max-complexity +# to 25 and run 'tox -epep8'. +# 34 is currently the most complex thing we have +# TODO(jogo): get this number down to 25 or so +max-complexity=35