[tox]
-envlist = py27,pep8
+envlist = py27,pep8,cov
skipsdist = true
[testenv]
commands = coverage run --branch manage.py test
[flake8]
-ignore = E501,E121,W191,E101,W293,E302,E231,E201,E202,F841,E225,E241,E126
+ignore = E501,E121,W191,E101,W293,E302,E231,E201,E202,F841,E225,E241,E126,E722,W504
+exclude = ./venv-tox,./.tox
max-complexity = 12
[testenv:pep8]
[testenv:py27]
commands =
- {[testenv]commands}
\ No newline at end of file
+ {[testenv]commands}
+
+[testenv:cov]
+commands = coverage xml --omit="*test*,*__init__.py,*site-packages*"
\ No newline at end of file