diff --git a/setup.py b/setup.py index b77c315..1f50194 100644 --- a/setup.py +++ b/setup.py @@ -24,10 +24,7 @@ setup( 'pynacl', 'python-multipart', 'pytoml', + 'requests', 'scrypt', ], - tests_require=[ - 'flake8', - 'pytest', - ], ) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..6f58f74 --- /dev/null +++ b/tox.ini @@ -0,0 +1,18 @@ +[tox] +envlist = py38, flake8, pytest + +[testenv] +deps = . + +[testenv:flake8] +deps = flake8 +exclude = .tox +commands = + flake8 kibicara tests --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 kibicara tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + +[testenv:pytest] +deps = pytest +commands = + pytest +