forked from ethereum/eth-hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (52 loc) · 1.24 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
[tox]
envlist=
py{35,36,37,py3}-core
py{35,36,37,py3}-backend-pycryptodome
py{35,36,37}-backend-pysha3
lint
docs
[isort]
combine_as_imports=True
force_sort_within_sections=True
include_trailing_comma=True
known_third_party=hypothesis,pytest,Crypto,sha3
known_first_party=eth_hash
line_length=21
multi_line_output=3
use_parentheses=True
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
ignore=
[testenv]
usedevelop=True
commands=
core: pytest {posargs:tests/core}
docs: make build-docs
pycryptodome: pytest {posargs:tests/backends/pycryptodome}
pysha3: pytest {posargs:tests/backends/pysha3}
basepython =
docs: python
py35: python3.5
py36: python3.6
py37: python3.7
pypy3: pypy3
extras=
test
docs: doc
docs: pycryptodome
docs: pysha3
pycryptodome: pycryptodome
pysha3: pysha3
whitelist_externals=make
[testenv:lint]
basepython=python
# mypy needs cryptodome installed to infer types
extras=
lint
lint: pycryptodome
commands=
mypy -p eth_hash --config-file {toxinidir}/mypy.ini
flake8 {toxinidir}/eth_hash {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/eth_hash {toxinidir}/tests
pydocstyle {toxinidir}/eth_hash {toxinidir}/tests