forked from holoviz/hvplot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (49 loc) · 1.83 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
# 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,py311}-{unit,examples,all}-{default}-{dev,pkg}
[_unit]
description = Run unit tests with coverage
deps = .[tests]
commands = pytest -v hvplot --cov=./hvplot --cov-append
[_examples]
description = Test that default examples run
deps = .[examples_tests, tests]
commands = pytest -n auto --dist loadscope --nbval-lax -p no:python
[_all]
description = Run all tests
deps = .[examples_tests, tests]
commands = {[_unit]commands}
{[_examples]commands}
[_pkg]
commands = bokeh sampledata
[testenv]
# geoviews dependency cartopy and test dependency iris cannot be
# installed by pip alone, so provide access to site-packages and do
# not install deps with pip.
sitepackages = True
install_command = pip install --no-deps {opts} {packages}
changedir = {envtmpdir}
commands = examples-pkg: {[_pkg]commands}
unit: {[_unit]commands}
examples: {[_examples]commands}
all: {[_all]commands}
deps = unit: {[_unit]deps}
examples: {[_examples]deps}
all: {[_all]deps}
[pytest]
addopts = -v --pyargs
norecursedirs = doc .git dist build _build .ipynb_checkpoints
; The test suite used to be run with nosetests which collected
; by default files like `testgeo.py` while pytest's default is
; to collect files like `test_geo.py`. This setting allows
; to avoid renaming all the test files.
python_files = test*.py
[flake8]
include = *.py
# run_tests.py is generated by conda build, which appears to have a
# bug resulting in code being duplicated a couple of times.
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py
ignore = E,
W