aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-03-10 16:54:46 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2016-03-10 16:55:45 -0500
commit48b04e6af840315cd593a061d6de303fb84c6784 (patch)
tree8a6a1dabbed9b71e69a5e01231321de641665404 /tox.ini
parent5c27fdf7774ec205afedbb0bc22782c889f75add (diff)
downloadexternal_python_mako-48b04e6af840315cd593a061d6de303fb84c6784.tar.gz
external_python_mako-48b04e6af840315cd593a061d6de303fb84c6784.tar.bz2
external_python_mako-48b04e6af840315cd593a061d6de303fb84c6784.zip
- use py.test as default test runner
- upgrade tox file to use py35, coverage, etc. - add flake8 rules
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini22
1 files changed, 18 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index d73c377..19016de 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,16 +1,30 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
-envlist = py{26,27,33,34}
+minversion=1.8.dev1
+envlist = py{26,27,34,35}
[testenv]
+cov_args=--cov=mako --cov-report term --cov-report xml
+
deps=pytest
- py{26,27}: mock
+ mock
beaker
markupsafe
pygments
babel
dogpile.cache
lingua<4
-
-commands=py.test
+ cov: pytest-cov
+
+setenv=
+ cov: COVERAGE={[testenv]cov_args}
+
+commands=py.test {env:COVERAGE:} {posargs}
+
+
+[flake8]
+show-source = True
+ignore = E711,E712,E721,D,N
+# F841,F811,F401
+exclude=.venv,.git,.tox,dist,doc,*egg,build