summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--tox.ini37
2 files changed, 37 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 04e886c80..c22e53c39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
index 000000000..3f9677087
--- /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
+