From 17f74670a5e0eee2f16e99bf254d1f82e0bc46b5 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Sun, 12 Apr 2015 21:57:59 -0400 Subject: [PATCH] Add tox.ini for running flake8 and unittests Allows contributors to easily run unit tests and flake8 validation by simply running "tox" from the root project directory. - Run flake8 with tox - Run unit tests via coverage with tox Signed-off-by: Thanh Ha --- tox.ini | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..f8fb65d --- /dev/null +++ b/tox.ini @@ -0,0 +1,16 @@ +[tox] +minversion = 1.6 +envlist = flake8,py27 +skipsdist = true + +[testenv] +deps = coverage +commands = coverage run test_bot.py + coverage html + +[testenv:flake8] +deps = flake8 +commands = flake8 + +[flake8] +max-line-length = 120