-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
88 lines (83 loc) · 1.79 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
[tox]
min_version = 4.18.0
envlist =
lint
py{310,311,312}
docs-esmpy
requires =
pip >= 24.2.0
setuptools >= 65.0
opts =
--colored
--verbose
[gh]
python =
3.10 = py310-coveralls
3.11 = py311-coveralls
3.12 = py312-esmpy-coveralls
[testenv:lint]
description = Check for Code Compliance and missing french translations
skip_install = True
download = true
deps =
black[jupyter] ==24.8.0
blackdoc ==0.3.9
isort ==5.13.2
flake8 >=7.1.1
flake8-rst-docstrings >=0.3.0
ruff >=0.5.7
numpydoc >=1.8.0
commands_pre =
pip list
commands =
make lint
make checkfrench
allowlist_externals =
make
[testenv:docs{,-esmpy}]
description = Run Build of xscen Documentation
extras =
docs
commands =
make docs
allowlist_externals =
make
[testenv:doctests{,-esmpy}]
description = Run documentation linters and doctests with pytest under {basepython}
extras =
dev
docs
commands =
pytest --no-cov --nbval docs/notebooks --durations=10 {posargs}
pytest --xdoctest xscen --durations=10 {posargs}
[testenv]
description = Run tests with pytest under {basepython} (Anaconda distribution)
setenv =
COV_CORE_SOURCE =
PYTHONPATH = {toxinidir}
passenv =
CI
COVERALLS_*
ESMFMKFILE
ESMF_VERSION
GITHUB_*
XCLIM_*
download = true
deps =
coveralls: coveralls
esmpy: git+https://github.com/esmf-org/esmf.git@v{env:ESMF_VERSION}\#subdirectory=src/addon/esmpy
upstream: -rrequirements_upstream.txt
extras =
dev
install_command = python -m pip install --no-user {opts} {packages}
commands_pre =
pip list
pip check
commands =
pytest {posargs}
; Coveralls requires access to a repo token set in .coveralls.yml in order to report stats
coveralls: - coveralls
allowlist_externals =
make
pip
git