forked from ethereum/py-evm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (61 loc) · 2.61 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
[tox]
envlist=
py{36,37,38}-{core,database,transactions,vm}
py36-benchmark
py36-native-blockchain-{frontier,homestead,tangerine_whistle,spurious_dragon,byzantium,constantinople,petersburg,istanbul,metropolis,transition}
py{36,37,38}-lint
py36-docs
[flake8]
max-line-length= 100
exclude=
ignore =
# E252 missing whitespace around parameter equals
# Already used too much in the codebase at the point of introduction.
E252,
# W503 line break before binary operator
# It's either this or W504 (line break _after_ binary operator), pick your poison.
# W503 gets enabled when E252 gets ignored, see:
# https://github.com/ethereum/py-evm/pull/1940#discussion_r432606845
W503
[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
py38: python3.8
[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