use specific hacking rules

Change-Id: I91cb5e30ec081262e2a590d64ba46fddadc7590f
This commit is contained in:
John Dickinson 2014-01-10 22:44:32 +08:00
parent 45b481b364
commit af91eea634
1 changed files with 8 additions and 3 deletions

11
tox.ini
View File

@ -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