1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
[tox]
envlist=
py{37,38,39,310,py3}-core
py{37,38,39,310}-lint
docs
[isort]
combine_as_imports=True
force_sort_within_sections=True
include_trailing_comma=True
known_third_party=hypothesis,pytest,eth_utils
known_first_party=hexbytes
line_length=21
multi_line_output=3
use_parentheses=True
[flake8]
max-line-length=88
exclude= venv*,.tox,docs,build
ignore=
[testenv]
usedevelop=True
commands=
core: pytest {posargs:tests/core}
docs: make check-docs
basepython =
docs: python
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
pypy3: pypy3
extras=
test
docs: doc
whitelist_externals=make
[common-lint]
deps=.[lint]
commands=
mypy -p hexbytes --config-file {toxinidir}/mypy.ini
flake8 {toxinidir}/hexbytes {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/hexbytes {toxinidir}/tests
pydocstyle --explain {toxinidir}/hexbytes {toxinidir}/tests
black {toxinidir}/hexbytes {toxinidir}/tests --check
[testenv:py{37,38,39,310}-lint]
deps={[common-lint]deps}
commands={[common-lint]commands}
[testenv:lint]
basepython=python
deps={[common-lint]deps}
commands={[common-lint]commands}
|