diff --git a/.gitignore b/.gitignore index 700f993..be9dfa5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,12 @@ *.pyc *.sw? *~ .coverage .eggs/ __pycache__ *.egg-info/ build/ dist/ version.txt /.hypothesis/ +/.tox/ diff --git a/requirements-test.txt b/requirements-test.txt index 8a26d2c..6c62abe 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1,3 @@ hypothesis -nose +pytest celery diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..70265ee --- /dev/null +++ b/tox.ini @@ -0,0 +1,17 @@ +[tox] +envlist=flake8,py3 + +[testenv:py3] +deps = + .[testing] + pytest-cov + pifpaf +commands = + pifpaf run postgresql -- pytest --cov=swh --cov-branch {posargs} + +[testenv:flake8] +skip_install = true +deps = + flake8 +commands = + {envpython} -m flake8