-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
52 lines (48 loc) · 1.36 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
[tox]
isolated_build = true
package = wheel
wheel_build_env = .pkg
envlist =
py{311,312,313}-pytest-pinned
py311-pytest-minimum
py313-pytest-latest
lint,docs
skip_missing_interpreters = true
[testenv]
setenv =
# Conda doesn't isolate its environment from ~/.local,
# which can lead to strange conflicts
PYTHONNOUSERSITE = 1
sitepackages = false
passenv =
UDUNITS2_XML_PATH
[testenv:py{311,312,313}-pytest-{pinned,latest,minimum}]
description = "Run the pytest test suite against a specific Python version and dependencies"
deps =
py311-pinned: -rcontinuous-integration/requirements-3.11.txt
py312-pinned: -rcontinuous-integration/requirements-3.12.txt
py313-pinned: -rcontinuous-integration/requirements-3.13.txt
minimum: -rcontinuous-integration/requirements-minimum.txt
extras =
latest: testing
minimum: testing
commands =
pytest \
--junitxml=junit-{envname}.xml \
--cov --cov-report term --cov-report xml:coverage-{envname}.xml \
{posargs}
setenv =
{[testenv]setenv}
EMSARRAY_DATA_DIR = {envtmpdir}/emsarray_tutorial
[testenv:lint]
description = "Run the lint checkers"
extras = testing
commands =
isort --diff --check-only src/ tests/ scripts/ docs/
flake8 src/ tests/ scripts/ docs/
mypy --junit-xml report-mypy.xml src/
[testenv:docs]
description = "Build the docs"
extras = complete,docs
changedir = docs/
commands = sphinx-build -b html -aEW . _build/html