forked from ethereum/py-evm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
71 lines (64 loc) · 3.55 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
66
67
68
69
70
71
[tox]
envlist=
py{35,36}-{core,database,transactions,vm,native-blockchain}
py{36}-{p2p,trinity}
py{36}-rpc-blockchain
py{36}-rpc-state-{frontier,homestead,eip150,eip158,byzantium,quadratic}
py{35,36}-native-state-{frontier,homestead,eip150,eip158,byzantium,constantinople,metropolis}
lint-py{35,36}
[flake8]
max-line-length= 100
exclude=
ignore=
[testenv]
usedevelop=True
passenv =
PYTEST_ADDOPTS
TRAVIS_EVENT_TYPE
commands=
core: py.test {posargs:tests/core/}
trinity: py.test {posargs:tests/trinity/core/}
p2p: py.test {posargs:tests/p2p}
database: py.test {posargs:tests/database}
rpc-blockchain: py.test {posargs:tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'not GeneralStateTests'}
rpc-state-frontier: py.test {posargs:tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Frontier'}
rpc-state-homestead: py.test {posargs:tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Homestead'}
rpc-state-eip150: py.test {posargs:tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP150'}
rpc-state-eip158: py.test {posargs:tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP158'}
rpc-state-byzantium: py.test {posargs:tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Byzantium'}
rpc-state-quadratic: py.test {posargs:tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py -k 'GeneralStateTests and stQuadraticComplexityTest'}
transactions: py.test {posargs:tests/json-fixtures/test_transactions.py}
vm: py.test {posargs:tests/json-fixtures/test_virtual_machine.py}
native-blockchain: py.test {posargs:tests/json-fixtures/test_blockchain.py}
native-state-frontier: py.test {posargs:tests/json-fixtures/test_state.py -k Frontier}
native-state-homestead: py.test {posargs:tests/json-fixtures/test_state.py -k Homestead}
native-state-eip150: py.test {posargs:tests/json-fixtures/test_state.py -k EIP150}
native-state-eip158: py.test {posargs:tests/json-fixtures/test_state.py -k EIP158}
native-state-byzantium: py.test {posargs:tests/json-fixtures/test_state.py -k Byzantium}
native-state-constantinople: py.test {posargs:tests/json-fixtures/test_state.py -k Constantinople}
native-state-metropolis: py.test {posargs:tests/json-fixtures/test_state.py -k Metropolis}
deps = .[evm-extras, test]
basepython =
py35: python3.5
py36: python3.6
[testenv:lint-py35]
deps = .[lint]
basepython=python3.5
setenv=MYPYPATH={toxinidir}:{toxinidir}/stubs
commands=
flake8 {toxinidir}/evm
flake8 {toxinidir}/tests --exclude="trinity"
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
mypy --follow-imports=silent --ignore-missing-imports --check-untyped-defs --disallow-incomplete-defs -p evm
[testenv:lint-py36]
deps = .[lint]
basepython=python3.6
setenv=MYPYPATH={toxinidir}:{toxinidir}/stubs
commands=
flake8 {toxinidir}/eth_typing
flake8 {toxinidir}/evm
flake8 {toxinidir}/p2p
flake8 {toxinidir}/trinity
flake8 {toxinidir}/tests
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
mypy --follow-imports=silent --ignore-missing-imports --check-untyped-defs --disallow-incomplete-defs -p eth_typing -p p2p -p trinity