From af91eea634241cfe5e76d6dd10ef805b4541b436 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Fri, 10 Jan 2014 22:44:32 +0800 Subject: [PATCH] use specific hacking rules Change-Id: I91cb5e30ec081262e2a590d64ba46fddadc7590f --- tox.ini | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 2c92d3ed56..2c3cb4f80f 100644 --- a/tox.ini +++ b/tox.ini @@ -39,8 +39,13 @@ commands = commands = {posargs} [flake8] -# TODO(dmllr): Review some of the hacking warnings and fix if applicable -# H233 Use print function, not print operator -ignore = H203,H233,H301,H302,H306,H402,H404,H703,H201 +# it's not a bug that we aren't using all of hacking +# H102 -> apache2 license exists +# H103 -> license is apache +# H201 -> no bare excepts +# H501 -> don't use locals() for str formatting +# H903 -> \n not \r\n +ignore = H +select = H102, H103, H201, H501, H903 exclude = .venv,.tox,dist,doc,*egg show-source = True