forked from ApeWorX/py-ssz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
51 lines (45 loc) · 1.14 KB
/
Copy pathtox.ini
File metadata and controls
51 lines (45 loc) · 1.14 KB
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
[tox]
envlist=
py{36,py3}-core
lint
doctest
benchmark
[isort]
force_sort_within_sections=True
include_trailing_comma=True
known_third_party = eth_typing,eth_utils,hypothesis,lru,pyrsistent,pytest,ruamel,setuptools,yaml_test_execution
line_length=88
multi_line_output=3
use_parentheses=True
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
ignore= W503,E203,P101
[testenv]
usedevelop=True
commands=
core: pytest --ignore {toxinidir}/tests/yaml_tests/test_yaml.py {posargs:tests}
doctest: make -C {toxinidir}/docs doctest
basepython =
doctest: python
py36: python3.6
extras=
test
doctest: doc
whitelist_externals=make
[testenv:yaml]
basepython=python3.6
commands=
pytest {toxinidir}/tests/yaml_tests/test_yaml.py
[testenv:lint]
basepython=python
extras=lint
commands=
flake8 {toxinidir}/ssz {toxinidir}/tests {toxinidir}/scripts
black --check {toxinidir}/ssz {toxinidir}/tests {toxinidir}/scripts
isort --recursive --check-only --diff {toxinidir}/ssz {toxinidir}/tests {toxinidir}/scripts
[testenv:benchmark]
deps= .
basepython=python
commands=
python {toxinidir}/scripts/benchmark/tree_hash.py