forked from holoviz/holoviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
73 lines (60 loc) · 2.3 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# 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 = {py37,py38,py39,py310,py311}-{flakes,unit,examples,all_recommended}-{default}-{dev,pkg}
[_flakes]
description = Flake check python
deps = .[flakes]
commands = flake8 holoviews
[_unit_core]
description = Run unit tests with coverage but no optional test dependency
deps = .[tests_core]
commands = pytest holoviews --cov=./holoviews -vv
[_unit]
description = Run unit tests with coverage and all the optional test dependencies
deps = .[tests]
commands = pytest holoviews --cov=./holoviews -vv
[_unit_gpu]
description = Run unit tests with coverage and all the optional test dependencies
deps = .[tests_gpu]
commands = pytest holoviews --cov=./holoviews -vv
[_examples]
description = Test that default examples run
deps = .[examples_tests]
commands = pytest -n auto --dist loadscope --nbval-lax examples -k "not Plotting_with_Bokeh and not 17-Dashboards and not Plots_and_Renderers"
# 'Plotting_with_Bokeh' needs selenium, phantomjs, firefox and geckodriver to save a png picture.
# '17-Dashboards' can give a timeout error.
# 'Plots_and_Renderers' can give file not found here.
[_all_recommended]
description = Run all recommended tests
deps = .[flakes, tests, examples_tests]
commands = {[_flakes]commands}
{[_unit]commands}
{[_examples]commands}
[_pkg]
commands = holoviews --install-examples
[testenv]
sitepackages = True
install_command = pip install --no-deps {opts} pytest {packages}
changedir = {envtmpdir}
commands = examples-pkg: {[_pkg]commands}
unit: {[_unit]commands}
unit_core: {[_unit_core]commands}
unit_gpu: {[_unit_gpu]commands}
flakes: {[_flakes]commands}
examples: {[_examples]commands}
all_recommended: {[_all_recommended]commands}
deps = unit: {[_unit]deps}
unit_core: {[_unit_core]deps}
unit_gpu: {[_unit_gpu]deps}
flakes: {[_flakes]deps}
examples: {[_examples]deps}
all_recommended: {[_all_recommended]deps}
[flake8]
include = *.py
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py
ignore = E,
W,
F999,
F405