-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (58 loc) · 2.96 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
[tox]
envlist=
py{35,36}-{core,trinity,p2p,database,transactions,vm,native-blockchain}
py{35,36}-rpc-blockchain
py{35,36}-rpc-state-{frontier,homestead,eip150,eip158,byzantium,quadratic}
py{35,36}-native-state-{frontier,homestead,eip150,eip158,byzantium,constantinople,metropolis}
flake8
mypy
[flake8]
max-line-length= 100
exclude=
ignore=
[testenv]
usedevelop=True
passenv =
PYTEST_ADDOPTS
TRAVIS_EVENT_TYPE
commands=
core: py.test {posargs:tests/core/ tests/rpc/ -k 'not test_rpc_against_fixtures'}
trinity: py.test {posargs:tests/trinity/}
p2p: py.test {posargs:evm/p2p}
database: py.test {posargs:tests/database}
rpc-blockchain: py.test {posargs:tests/rpc/test_rpc_fixtures.py -k 'not GeneralStateTests'}
rpc-state-frontier: py.test {posargs:tests/rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Frontier'}
rpc-state-homestead: py.test {posargs:tests/rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Homestead'}
rpc-state-eip150: py.test {posargs:tests/rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP150'}
rpc-state-eip158: py.test {posargs:tests/rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and EIP158'}
rpc-state-byzantium: py.test {posargs:tests/rpc/test_rpc_fixtures.py -k 'GeneralStateTests and not stQuadraticComplexityTest and Byzantium'}
rpc-state-quadratic: py.test {posargs:tests/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 = -r{toxinidir}/requirements-dev.txt
coincurve
database: leveldb
trinity: leveldb
basepython =
py35: python3.5
py36: python3.6
[testenv:flake8]
basepython=python
deps=flake8==3.5.0
commands=
flake8 {toxinidir}/evm
flake8 {toxinidir}/tests --exclude=""
[testenv:mypy]
basepython=python3.5
deps=mypy
setenv=MYPYPATH={toxinidir}:{toxinidir}/stubs
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
commands=mypy --follow-imports=silent --ignore-missing-imports -p evm.p2p