[tests] Remove tests_install and replace with tox configuration

This commit is contained in:
Cathy Hu 2020-07-02 11:24:43 +02:00
parent 00f1c53b9c
commit cf3d56516f
2 changed files with 19 additions and 4 deletions

View file

@ -24,10 +24,7 @@ setup(
'pynacl',
'python-multipart',
'pytoml',
'requests',
'scrypt',
],
tests_require=[
'flake8',
'pytest',
],
)

18
tox.ini Normal file
View file

@ -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