-
Notifications
You must be signed in to change notification settings - Fork 105
/
tox.ini
40 lines (36 loc) · 1.05 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
[tox]
envlist=
py{35,36}-{contract,handler}
lint{35,36}
[flake8]
max-line-length= 100
exclude=
ignore=
[testenv]
usedevelop=True
passenv =
PYTEST_ADDOPTS
TRAVIS_EVENT_TYPE
commands=
contract: py.test {posargs:tests/contract/}
handler: py.test {posargs:tests/handler/}
extras =
coincurve
deps = -r{toxinidir}/requirements-dev.txt
basepython =
py35: python3.5
py36: python3.6
[testenv:lint35]
basepython=python3.5
setenv=MYPYPATH={toxinidir}:{toxinidir}/stubs
commands=
flake8 {toxinidir}/sharding --exclude="{toxinidir}/sharding/contracts/*.v.py"
flake8 {toxinidir}/tests
mypy --follow-imports=silent --ignore-missing-imports --disallow-incomplete-defs --disallow-untyped-defs sharding tools
[testenv:lint36]
basepython=python3.6
setenv=MYPYPATH={toxinidir}:{toxinidir}/stubs
commands=
flake8 {toxinidir}/sharding --exclude="{toxinidir}/sharding/contracts/*.v.py"
flake8 {toxinidir}/tests
mypy --follow-imports=silent --ignore-missing-imports --disallow-incomplete-defs --disallow-untyped-defs sharding tools