forked from ethereum/eth-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
54 lines (49 loc) · 1.26 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
[tox]
envlist=
py{35,36,37,38,py3},
py36-typing1,
lint,
docs
[isort]
force_sort_within_sections=True
known_third_party=hypothesis,pytest,async_generator,cytoolz,trio_typing,pytest_trio
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
ignore = E203,W503
[testenv]
install_command=python -m pip install --no-use-pep517 {opts} {packages}
usedevelop=True
commands=
py.test {posargs:tests}
docs: make -C {toxinidir} validate-docs
deps=
eth-hash[pycryptodome]
typing1: eth-typing<2
extras=
test
docs: doc
basepython=
docs: python
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
mypy: mypy
pypy3: pypy3
whitelist_externals=make
[testenv:lint]
basepython=python3
whitelist_externals=black
extras=lint
commands=
flake8 {toxinidir}/eth_utils {toxinidir}/setup.py {toxinidir}/tests
mypy -p eth_utils --config-file {toxinidir}/mypy.ini
mypy --follow-imports=silent --ignore-missing-imports --disallow-incomplete-defs tests/type-checks/
black --check --diff {toxinidir}/eth_utils/ --check --diff {toxinidir}/tests/
py.test {posargs:tests}/functional-utils/type_inference_tests.py