]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
OK use tox
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Jul 2014 00:06:47 +0000 (20:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Jul 2014 00:48:34 +0000 (20:48 -0400)
.gitignore
tox.ini [new file with mode: 0644]

index 04e886c804443fce3af3fa21eb4b8344a77f6228..c22e53c39043613ba22428f057f385d204bfe790 100644 (file)
@@ -6,7 +6,6 @@
 /doc/build/output/
 /dogpile_data/
 *.orig
-tox.ini
 /.tox
 .venv
 *.egg-info
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..3f96770
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,37 @@
+[tox]
+envlist = pyXX
+
+[testenv]
+whitelist_externals=flake8
+                    coverage
+deps=pytest
+     flake8
+     coverage
+     mock
+
+sitepackages=True
+
+commands=
+  python -m pytest \
+                {posargs}
+
+
+[testenv:pyXX]
+
+[testenv:coverage]
+commands=
+  py.test \
+        --cov=sqlalchemy {posargs}
+  coverage xml --include=lib/sqlalchemy/*
+
+[testenv:pep8]
+# we are *very very* early in the flake8 process :)
+commands = flake8 setup.py sqla_nose.py test/aaa_profiling/
+
+
+[flake8]
+
+show-source = True
+ignore = E711,E123,E125,E128,E265,H305,H307,H402,H405,H703,H803,H904
+exclude=.venv,.git,.tox,dist,doc,*egg,build
+