forked from ethereum/web3.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (61 loc) · 1.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
envlist=
py{35,36,37}-ens
py{35,36,37}-core
py{35,36,37}-core-eth_abi2
py{35,36,37}-integration-{goethereum,ethtester,parity}
lint
doctest
[isort]
combine_as_imports=True
force_sort_within_sections=True
include_trailing_comma=True
known_standard_library=pytest
known_third_party=lru,eth_tester
known_first_party=web3,ens
line_length=21
multi_line_output=3
skip=web3/main.py,web3/utils/windows.py
use_parentheses=True
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
ignore=
[testenv]
usedevelop=True
commands=
eth_abi2: pip install --upgrade --force-reinstall eth-abi~=2.0.0b1
core: pytest {posargs:tests/core}
ens: pytest {posargs:tests/ens}
integration-goethereum-ipc: pytest {posargs:tests/integration/go_ethereum/test_goethereum_ipc.py}
integration-goethereum-http: pytest {posargs:tests/integration/go_ethereum/test_goethereum_http.py}
integration-goethereum-ws: pytest {posargs:tests/integration/go_ethereum/test_goethereum_ws.py}
integration-ethtester: pytest {posargs:tests/integration/test_ethereum_tester.py}
integration-parity-ipc: pytest -s {posargs:tests/integration/parity/test_parity_ipc.py}
integration-parity-http: pytest -s {posargs:tests/integration/parity/test_parity_http.py}
integration-parity-ws: pytest -s {posargs:tests/integration/parity/test_parity_ws.py}
doctest: make -C {toxinidir}/docs doctest
deps =
.[dev]
doctest: sphinx
doctest: ethtoken
passenv =
GETH_BINARY
GETH_VERSION
PARITY_BINARY
PARITY_VERSION
PARITY_OS
TRAVIS_BUILD_DIR
GOROOT
GOPATH
basepython =
doctest: python3.6
py35: python3.5
py36: python3.6
py37: python3.7
[testenv:lint]
basepython=python
extras=linter
commands=
flake8 {toxinidir}/web3 {toxinidir}/ens {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/web3/ {toxinidir}/ens/ {toxinidir}/tests/