-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathtox.ini
46 lines (42 loc) · 1.13 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
[tox]
envlist=
py{36,37,py3}-{core,spec,benchmark}
lint
doctest
[isort]
combine_as_imports=True
force_sort_within_sections=True
include_trailing_comma=True
known_third_party=hypothesis,pytest,numpy
known_first_party=wasm
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}
spec: pytest {posargs:tests/spec}
benchmark: python scripts/benchmark/run.py --basic --fibonacci-1 --fibonacci-11 --recursive-keccak-1 --recursive-keccak-10 --factorization-1117
doctest: make -C {toxinidir}/docs doctest
basepython =
doctest: python
py36: python3.6
py37: python3.7
pypy3: pypy3
extras=
test
doctest: doc
whitelist_externals=make
[testenv:lint]
basepython=python
extras=lint
setenv=MYPYPATH={toxinidir}/stubs
commands=
flake8 {toxinidir}/wasm {toxinidir}/tests {toxinidir}/scripts
isort --recursive --check-only --diff {toxinidir}/wasm {toxinidir}/tests {toxinidir}/scripts
mypy --follow-imports=silent --ignore-missing-imports --disallow-incomplete-defs -p wasm