py-libp2p/tox.ini

45 lines
916 B
INI

[tox]
envlist=
py{36,37,py3}-core
lint
docs
[isort]
combine_as_imports=True
force_sort_within_sections=True
include_trailing_comma=True
known_third_party=hypothesis,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: pytest {posargs:tests/core}
docs: make build-docs
basepython =
docs: python
py36: python3.6
py37: python3.7
pypy3: pypy3
extras=
test
docs: doc
whitelist_externals=make
[testenv:lint]
basepython=python
extras=lint
commands=
mypy -p {toxinidir}/<MODULE_NAME> --config-file {toxinidir}/mypy.ini
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
pydocstyle {toxinidir}/<MODULE_NAME> {toxinidir}/tests