forked from ethereum/py-evm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (52 loc) · 2.19 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
[tox]
envlist=
py{36,37}-{core,database,transactions,vm}
py36-benchmark
py36-native-blockchain-{frontier,homestead,tangerine_whistle,spurious_dragon,byzantium,constantinople,petersburg,istanbul,metropolis,transition}
py{36,37}-lint
py36-docs
[flake8]
max-line-length= 100
exclude=
ignore=
[testenv]
usedevelop=True
passenv =
PYTEST_ADDOPTS
TRAVIS_EVENT_TYPE
commands=
core: pytest {posargs:tests/core/}
database: pytest {posargs:tests/database}
transactions: pytest {posargs:tests/json-fixtures/test_transactions.py}
vm: pytest {posargs:tests/json-fixtures/test_virtual_machine.py}
native-blockchain-frontier: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Frontier}
native-blockchain-homestead: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Homestead}
native-blockchain-tangerine_whistle: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork EIP150}
native-blockchain-spurious_dragon: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork EIP158}
native-blockchain-byzantium: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Byzantium}
native-blockchain-constantinople: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Constantinople}
native-blockchain-petersburg: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork ConstantinopleFix}
native-blockchain-istanbul: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Istanbul}
native-blockchain-metropolis: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Metropolis}
native-blockchain-transition: pytest {posargs:tests/json-fixtures/test_blockchain.py -k BlockchainTests/TransitionTests}
lint: flake8 {toxinidir}/eth {toxinidir}/tests {toxinidir}/scripts
lint: mypy -p eth --config-file {toxinidir}/mypy.ini
deps =
.[eth-extra,test]
lint: .[eth,lint]
basepython =
py36: python3.6
py37: python3.7
[testenv:py36-docs]
whitelist_externals=
make
deps = .[doc,eth-extra]
passenv =
PYTEST_ADDOPTS
TRAVIS_EVENT_TYPE
commands=
make validate-docs
[testenv:py36-benchmark]
deps = .[eth-extra,benchmark]
commands=
benchmark: {toxinidir}/scripts/benchmark/run.py