forked from holoviz/holoviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (45 loc) · 1.5 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
# For use with pyct (https://github.com/pyviz/pyct), but just standard
# tox config (works with tox alone).
[tox]
# python version test group extra envs extra commands
envlist = {py27,py35,py36}-{flakes,unit,all_recommended,regression}-{default}-{dev,pkg}
[_flakes]
description = Flake check python
deps = .[tests]
commands = flake8 holoviews
[_unit]
description = Run unit tests with coverage
deps = .[unit_tests]
passenv = TRAVIS TRAVIS_*
commands = nosetests holoviews.tests --with-doctest --with-coverage --cover-package=holoviews
[_regression]
description = Run regression tests
deps = .[nbtests]
commands = python ./test_notebooks.py
[_all_recommended]
description = Run all recommended tests
deps = .[unit_tests]
commands = {[_flakes]commands}
{[_unit]commands}
[_pkg]
commands = holoviews --install-examples
[testenv]
sitepackages = True
install_command = pip install --no-deps {opts} nose {packages}
changedir = {envtmpdir}
commands = examples-pkg: {[_pkg]commands}
unit: {[_unit]commands}
flakes: {[_flakes]commands}
regression: {[_regression]commands}
all_recommended: {[_all_recommended]commands}
deps = unit: {[_unit]deps}
flakes: {[_flakes]deps}
all_recommended: {[_all_recommended]deps}
regression: {[_regression]deps}
[flake8]
include = *.py
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py
ignore = E,
W,
F999,
F405