2019-07-24 15:54:30 +08:00
|
|
|
# Reference: https://github.com/ethereum/py_ecc/blob/d0da74402210ea1503ef83b3c489d5b5eba7f7bf/tox.ini
|
|
|
|
|
|
|
|
[tox]
|
|
|
|
envlist =
|
|
|
|
py37-test
|
|
|
|
lint
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
2019-07-24 16:41:19 +08:00
|
|
|
passenv = CI TRAVIS TRAVIS_*
|
2019-07-24 15:54:30 +08:00
|
|
|
extras = test
|
|
|
|
commands =
|
|
|
|
pytest --cov=./libp2p tests/
|
2019-07-24 16:41:19 +08:00
|
|
|
codecov
|
2019-07-24 15:54:30 +08:00
|
|
|
basepython =
|
|
|
|
py37: python3.7
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
basepython = python3
|
|
|
|
extras = dev
|
|
|
|
commands =
|
2019-07-24 18:00:57 +08:00
|
|
|
pylint --rcfile={toxinidir}/.pylintrc libp2p examples tests
|
|
|
|
mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini
|