From c10e65385f376fba7e2458f7914f9430ed90a71b Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <antoine.romain.dumont@gmail.com> Date: Thu, 18 Oct 2018 16:22:14 +0200 Subject: [PATCH] tests: Initialize tox file --- .gitignore | 1 + tox.ini | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 25bc741..d570526 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ __pycache__ build/ dist/ version.txt +.tox/ diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..0fb07c6 --- /dev/null +++ b/tox.ini @@ -0,0 +1,16 @@ +[tox] +envlist=flake8,py3 + +[testenv:py3] +deps = + .[testing] + pytest-cov +commands = + pytest --cov=swh --cov-branch {posargs} + +[testenv:flake8] +skip_install = true +deps = + flake8 +commands = + {envpython} -m flake8 -- GitLab