forked from Ouranosinc/xclim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
58 lines (54 loc) · 1.68 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
[tox]
envlist = py{37,38,39}-{linux, windows, macOS}, py37-lm3, py37-xarray, py37-bottleneck, py38-anaconda, py38-doctest, py38-slow, black, docs, doctests, coverage
requires = pip >= 21.0
opts = -v
[testenv:black]
skip_install = True
extras =
deps =
flake8
black[jupyter]
pydocstyle
commands =
pydocstyle --convention=numpy xclim
flake8 xclim
black --check --target-version py37 xclim
black --check --target-version py37 docs --include "\.ipynb$"
[testenv:docs]
extras = dev
commands =
make --directory=docs clean html
whitelist_externals =
make
[testenv:doctests]
extras = dev
setenv = PYTEST_ADDOPTS = "--color=yes"
commands =
- mypy xclim
pylint --rcfile=setup.cfg --exit-zero xclim
pytest --nbval docs/notebooks
pytest --rootdir xclim/testing/tests/ --xdoctest xclim --ignore=xclim/testing/tests/
[testenv]
setenv =
PYTEST_ADDOPTS = "--color=yes"
PYTHONPATH = {toxinidir}
COV_CORE_SOURCE=
passenv = CI GITHUB_* LD_LIBRARY_PATH
platform =
windows: win32
macOS: darwin
linux: linux
extras = dev
deps =
coveralls
install_command = python -m pip install --no-user {opts} {packages}
download = True
commands =
xarray: pip install git+https://github.com/pydata/xarray.git@main#egg=xarray
xarray: pip install git+https://github.com/Unidata/cftime.git@master#egg=cftime
bottleneck: pip install git+https://github.com/pydata/bottleneck.git@master#egg=bottleneck
lm3: pip install git+https://github.com/OpenHydrology/lmoments3.git@develop#egg=lmoments3
doctest: pytest --rootdir xclim/testing/tests/ --xdoctest xclim
pytest --cov xclim -m "not slow"
slow: pytest --cov xclim -m "slow"
coverage: - coveralls