forked from mashinokatsumi/brownie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (45 loc) · 2.02 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
[tox]
envlist =
lint
docs-{local,external}
py{36,37,38}
{pm,evm,plugin}test
evm-{byzantium,petersburg,istanbul,latest}
[testenv]
passenv =
ETHERSCAN_TOKEN
GITHUB_TOKEN
WEB3_INFURA_PROJECT_ID
deps =
py{36,37,38},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: coverage==5.2.1
py{36,37,38},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest==6.0.1
py{36,37,38},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-cov==2.10.1
py{36,37,38},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-mock==3.3.1
py{36,37,38},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-xdist==1.34.0
docs-{local,external}: sphinx
docs-{local,external}: sphinx_rtd_theme
docs-{local,external}: pygments_lexer_solidity
commands =
py{36,37,38}: python -m pytest tests/
evm-byzantium: python -m pytest tests/ --evm 0.4.22,0.4.26,0.5.0,0.5.17,0.6.3,0.6.9 byzantium 0,10000
evm-petersburg: python -m pytest tests/ --evm 0.5.5,0.5.17,0.6.3,0.6.9 petersburg 0,10000
evm-istanbul: python -m pytest tests/ --evm 0.5.13,0.5.17,0.6.3,0.6.9 istanbul 0,10000
evm-latest: python -m pytest tests/ --evm latest byzantium,petersburg,istanbul 0,200,10000
pmtest: python -m pytest tests/ --target pm -n 0
plugintest: python -m pytest tests/test/plugin --target plugin -n 0
docs-local: sphinx-build {posargs:-E} -b html docs dist/docs -n -q --color
docs-external: sphinx-build -b linkcheck docs dist/docs -n -q --color
[testenv:lint]
deps =
black==20.8b1
flake8==3.9.1
isort==5.8.0
mypy==0.720
basepython=python3
extras=linter
commands =
black --check {toxinidir}/brownie {toxinidir}/tests
flake8 {toxinidir}/brownie {toxinidir}/tests
isort --check-only --diff --recursive {toxinidir}/brownie {toxinidir}/tests --skip brownie/__init__.py
mypy --disallow-untyped-defs {toxinidir}/brownie/convert {toxinidir}/brownie/network {toxinidir}/brownie/project
mypy --allow-untyped-defs {toxinidir}/brownie