forked from holoviz/geoviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
98 lines (82 loc) · 3.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# For use with pyct (https://github.com/holoviz-dev/pyctdev), but just standard
# tox config (works with tox alone).
[tox]
# python version test group extra envs extra commands
envlist = {py39,py310,py311,py312}-{flakes,unit,examples,all_recommended,examples_extra,simple}-{default}-{dev,pkg}
[_simple]
description = Install geoviews without any optional dependencies
deps = .
commands = python -c "import geoviews as gv; print(gv.__version__)"
[_flakes]
description = Flake check python and notebooks
deps = .[tests]
commands = flake8
# pytest --nbsmoke-lint -k ".ipynb"
[_unit]
description = Run unit tests with coverage
deps = .[tests]
commands = pytest geoviews --cov=./geoviews
[_examples]
description = Test that default examples run
deps = .[recommended, tests]
commands = pytest --nbsmoke-run -k ".ipynb"
[_examples_extra]
description = Test that all examples run
deps = .[examples_extra, tests]
commands = pytest --nbsmoke-run -k ".ipynb" --ignore-nbsmoke-skip-run
[_all_recommended]
description = Run all recommended tests
deps = .[recommended, tests]
commands = {[_flakes]commands}
{[_unit]commands}
{[_examples]commands}
[_pkg]
commands = geoviews examples --path=. --force
bokeh sampledata
[testenv]
sitepackages = True
install_command = pip install --no-deps {opts} {packages}
changedir = {envtmpdir}
commands = examples-pkg: {[_pkg]commands}
unit: {[_unit]commands}
flakes: {[_flakes]commands}
examples: {[_examples]commands}
examples_extra: {[_examples_extra]commands}
simple: {[_simple]commands}
all_recommended: {[_all_recommended]commands}
deps = unit: {[_unit]deps}
flakes: {[_flakes]deps}
examples: {[_examples]deps}
examples_extra: {[_examples_extra]deps}
all_recommended: {[_all_recommended]deps}
[pytest]
addopts = -v --pyargs --doctest-ignore-import-errors
norecursedirs = doc .git dist build _build .ipynb_checkpoints
# depend on optional iris, xesmf, etc
nbsmoke_skip_run = .*Homepage\.ipynb$
.*user_guide/Resampling_Grids\.ipynb$
.*user_guide/Gridded_Datasets_.*\.ipynb$
.*gallery/bokeh/xarray_gridded\.ipynb$
.*gallery/.*/xarray_image\.ipynb$
.*gallery/.*/xarray_quadmesh\.ipynb$
.*gallery/.*/katrina_track\.ipynb$
filterwarnings =
; 2023-01: https://github.com/bokeh/bokeh/pull/12690
ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:bokeh
; 2023-01: https://github.com/cupy/cupy/pull/7245
ignore:`.+?` is a deprecated alias for `.+?`.:DeprecationWarning:cupy
; 2023-01: https://github.com/SciTools/cartopy/issues/2113
ignore:The 'geom_factory' function is deprecated in Shapely 2:DeprecationWarning:cartopy.crs
error::holoviews.HoloviewsDeprecationWarning
error::holoviews.HoloviewsUserWarning
error::geoviews.GeoviewsDeprecationWarning
error::geoviews.GeoviewsUserWarning
; 2023-09: See https://github.com/Unidata/MetPy/pull/3117
ignore:'xdrlib' is deprecated and slated for removal in Python 3.13:DeprecationWarning:metpy.io.nexrad
[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