py-libp2p/tox.ini

42 lines
777 B
INI
Raw Normal View History

2018-01-25 08:00:28 +08:00
[tox]
envlist=
py{35,36,py3}-core
2018-01-25 08:00:28 +08:00
lint
2018-02-08 03:14:11 +08:00
doctest
2018-01-25 08:00:28 +08:00
[isort]
combine_as_imports=True
force_sort_within_sections=True
include_trailing_comma=True
known_standard_library=pytest
known_first_party=<MODULE_NAME>
line_length=21
multi_line_output=3
use_parentheses=True
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
ignore=
[testenv]
usedevelop=True
commands=
core: py.test {posargs:tests/core}
2018-02-08 03:14:11 +08:00
doctest: make -C {toxinidir}/docs doctest
2018-01-25 08:00:28 +08:00
basepython =
python
2018-01-25 08:00:28 +08:00
py35: python3.5
py36: python3.6
pypy3: pypy3
2018-02-08 03:14:11 +08:00
extras=
test
doctest: doc
whitelest_externals=make
2018-01-25 08:00:28 +08:00
[testenv:lint]
extras=lint
commands=
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests