Skip to content

Commit dd574c5

Browse files
committed
add tox.ini
1 parent 8b0506d commit dd574c5

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

tox.ini

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
[tox]
3+
isolated_build = True
4+
envlist = clean,py{36,37},report,pre-commit
5+
6+
[pytest]
7+
addopts =
8+
--durations=5
9+
--cov --cov-append --cov-fail-under=70 --cov-report=
10+
norecursedirs =
11+
docs
12+
13+
[coverage:paths]
14+
source =
15+
adaptive
16+
.tox/py*/lib/python*/site-packages
17+
18+
[coverage:run]
19+
branch = true
20+
parallel = true
21+
source = adaptive
22+
23+
[coverage:report]
24+
show_missing = true
25+
precision = 2
26+
27+
[coverage:xml]
28+
output = .coverage.xml
29+
30+
[testenv]
31+
deps = .[testing,other]
32+
commands =
33+
pytest
34+
depends =
35+
{py36,py37}: clean
36+
report: {py36,py37}
37+
38+
[testenv:report]
39+
deps = coverage
40+
skip_install = true
41+
commands =
42+
coverage report
43+
coverage xml
44+
45+
[testenv:clean]
46+
deps = coverage
47+
skip_install = true
48+
commands = coverage erase
49+
50+
[testenv:pre-commit]
51+
skip_install = true
52+
deps = pre-commit
53+
commands = pre-commit run --all-files --show-diff-on-failure
54+
55+
[flake8]
56+
max-line-length = 100
57+
ignore = E501, W503, E203, E266
58+
max-complexity = 18
59+
select = B, C, E, F, W, T4, B9
60+
exclude = .git, .tox, __pycache__, dist
61+
62+
[isort]
63+
multi_line_output=3
64+
include_trailing_comma=True
65+
force_grid_wrap=0
66+
use_parentheses=True
67+
line_length=88
68+
known_third_party=PIL,atomicwrites,holoviews,ipykernel,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers,zmq

0 commit comments

Comments
 (0)