2019-07-24 15:54:30 +08:00
|
|
|
# Reference: https://github.com/ethereum/py_ecc/blob/d0da74402210ea1503ef83b3c489d5b5eba7f7bf/tox.ini
|
|
|
|
|
|
|
|
[tox]
|
|
|
|
envlist =
|
|
|
|
py37-test
|
|
|
|
lint
|
|
|
|
|
2019-08-03 05:38:03 +08:00
|
|
|
[flake8]
|
|
|
|
max-line-length= 100
|
|
|
|
exclude=
|
|
|
|
ignore=
|
|
|
|
|
2019-08-03 13:29:21 +08:00
|
|
|
[isort]
|
|
|
|
force_sort_within_sections=True
|
|
|
|
known_third_party=hypothesis,pytest,async_generator,cytoolz,trio_typing,pytest_trio
|
|
|
|
multi_line_output=3
|
|
|
|
include_trailing_comma=True
|
|
|
|
force_grid_wrap=0
|
|
|
|
use_parentheses=True
|
|
|
|
line_length=88
|
|
|
|
|
2019-07-24 15:54:30 +08:00
|
|
|
[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
|
2019-08-03 01:52:53 +08:00
|
|
|
whitelist_externals = make
|
2019-07-24 15:54:30 +08:00
|
|
|
commands =
|
2019-08-03 01:52:53 +08:00
|
|
|
make lintroll
|