diff --git a/.gitignore b/.gitignore index e5aec761..69369941 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,23 @@ *.pyc *.sw? *~ .coverage .eggs/ __pycache__ *.egg-info/ version.txt build/ dist/ /analysis.org /swh/deposit/fixtures/private_data.yaml /swh/deposit.json /test.json /swh/test db.sqlite3 /.noseids *.tgz *.zip *.tar.gz *.tar.bz2 *.tar.lzma +.tox/ diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..6fda7a34 --- /dev/null +++ b/tox.ini @@ -0,0 +1,18 @@ +[tox] +envlist=flake8,py3 + +[testenv:py3] +deps = + .[testing] + pytest-cov + pifpaf +commands = + pifpaf run postgresql -- pytest {envsitepackagesdir}/swh/deposit {posargs} + +[testenv:flake8] +skip_install = true +deps = + flake8 +commands = + {envpython} -m flake8 \ + --exclude=.tox,.git,__pycache__,.tox,.eggs,*.egg,swh/deposit/migrations