commit:     fdd23db536034e4e13fe2121ff155d9151744b45
Author:     Virgil Dupras <hsoft <AT> hardcoded <DOT> net>
AuthorDate: Tue Aug 14 13:41:21 2018 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:41:21 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=fdd23db5

Add tox.ini

The goal is for the `tox` command to be the only command to run to
verify the quality of the code before a commit.

 .gitignore |  1 +
 tox.ini    | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/.gitignore b/.gitignore
index 3b6d6ef..63ee53f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ build
 __pycache__
 *.py[c,o]
 dist
+/.tox

diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..b7bcbdb
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,15 @@
+[tox]
+envlist = py27,py35,py36,py37,pyflakes
+skip_missing_interpreters = True
+
+[testenv]
+commands =
+    python setup.py test
+sitepackages = True
+
+[testenv:pyflakes]
+deps =
+    pyflakes
+commands =
+    pyflakes pym
+sitepackages = False

Reply via email to