forked from holoviz/holoviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (44 loc) · 1.46 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
# 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 = {py36,py37,py38,py39,py310}-{flakes,unit,examples,all_recommended}-{default}-{dev,pkg}
[_flakes]
description = Flake check python
deps = .[tests]
commands = flake8 holoviews
[_unit]
description = Run unit tests with coverage
deps = .[unit_tests]
commands = pytest holoviews --cov=./holoviews
[_examples]
description = Test that default examples run
deps = .[tests]
commands = pytest --nbsmoke-run -k ".ipynb" examples/reference/elements
[_all_recommended]
description = Run all recommended tests
deps = .[unit_tests]
commands = {[_flakes]commands}
{[_unit]commands}
{[_examples]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}
examples: {[_examples]commands}
all_recommended: {[_all_recommended]commands}
deps = unit: {[_unit]deps}
flakes: {[_flakes]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