Files
py-libp2p/tox.ini
mhchia d1c25b8b1e Fix interop pubsub tests and PR feedback
- Use `from_id`, the changed field name in `PSMessage`.
- PR feedbacks
        - Add label `test` in `testenv` in tox.ini, to avoid wrong
dispatching an environment's command in the future.
        - Use `pytest` over `py.test`.
2019-09-24 11:30:52 +08:00

56 lines
1.1 KiB
INI

# Reference: https://github.com/ethereum/py_ecc/blob/d0da74402210ea1503ef83b3c489d5b5eba7f7bf/tox.ini
[tox]
envlist =
py37-test
py37-interop
lint
[flake8]
max-line-length = 100
exclude = *_pb2*.py
ignore = E203, W503
max-complexity = 18
select = B,C,E,F,W,T4,B9
[isort]
force_sort_within_sections=True
known_third_party=pytest,p2pclient
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
skip_glob=
*_pb2*.py
*.pyi
[testenv]
deps =
passenv = CI TRAVIS TRAVIS_*
extras = test
commands =
test: pytest tests/
basepython =
py37: python3.7
[testenv:lint]
basepython = python3
extras = dev
commands =
mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini
black --check libp2p tests tests_interop examples setup.py
isort --recursive --check-only libp2p tests tests_interop examples setup.py
flake8 libp2p tests tests_interop examples setup.py
[testenv:py37-interop]
deps =
p2pclient
pexpect
passenv = CI TRAVIS TRAVIS_* GOPATH
extras = test
commands =
pytest tests_interop/
basepython =
py37: python3.7