forked from ethereum/ddht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (48 loc) · 1.09 KB
/
tox.ini
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
[tox]
envlist=
py{38}-core
lint
docs
[isort]
force_sort_within_sections=True
known_third_party=hypothesis,pytest,eth_utils,eth_keys,trio_typing,pytest_trio,trio,factory,coincurve,async_service,eth_hash,rlp,cached_property,xdg
known_first_party=ddht
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
ignore=W503,E203
[testenv]
usedevelop=True
setenv =
MYPYPATH = {toxinidir}/stubs
passenv =
HOME
commands=
core: pytest {posargs:tests/core}
docs: make build-docs
basepython =
docs: python
py38: python3.8
extras=
test
web3
alexandria
benchmark
docs: doc
whitelist_externals=make
[testenv:lint]
basepython=python
extras=
lint
web3
commands=
mypy -p {toxinidir}/ddht --config-file {toxinidir}/mypy.ini
flake8 {toxinidir}/ddht {toxinidir}/tests
isort --check-only --diff {toxinidir}/ddht {toxinidir}/tests
black --check --diff {toxinidir}/ddht/ --check --diff {toxinidir}/tests/
pydocstyle {toxinidir}/ddht {toxinidir}/tests