-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
91 lines (82 loc) · 1.99 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
[testenv:bootstrap]
deps =
jinja2
matrix
tox
skip_install = true
commands =
python ci/bootstrap.py --no-env
passenv =
*
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
[tox]
envlist =
clean,
check,
{py38,py39,py310},
report
ignore_basepython_conflict = true
# Define the minimal tox version required to run;
# if the host tox is less than this the tool with create an environment and
# provision it with a tox that satisfies it under provision_tox_env.
# At least this version is needed for PEP 517/518 support.
minversion = 3.3.0
# Activate isolated build environment. tox will use a virtual environment
# to build a source distribution from the source tree. For build tools and
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
isolated_build = true
[testenv]
basepython =
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
py310: {env:TOXPYTHON:python3.10}
{bootstrap,clean,check,docs,spell,report,codecov}: {env:TOXPYTHON:python3.10}
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
DISPLAY = :0
MPLBACKEND = agg
passenv =
*
usedevelop = True
deps =
pytest
numpy
netcdf4
pandas
xarray
xmltodict
pyyaml>=5.1
scipy
matplotlib>3
sh
dtscalibration
commands =
{posargs:pytest -v}
[testenv:check]
deps =
docutils
check-manifest
flake8
readme-renderer
pygments
skip_install = true
commands =
# The first command is for checking a readme in a restructuredtext format.
# python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}
flake8 src tests setup.py
[testenv:codecov]
deps =
codecov
skip_install = true
commands =
codecov []
[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage
[flake8]
exclude = .tox,*.egg,build,data
select = E,W,F
ignore = E113,E116,E221,E226,E241,E251,E901,W503,F401,E741,F401,E203,F481