-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
66 lines (62 loc) · 1.23 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
[tox]
min_version = 4.0
envlist =
black
py{39,310,311}
docs
coveralls
requires =
pip >= 21.0
opts =
--verbose
[testenv:black]
description = Check for Code Compliance
skip_install = True
download = true
conda_channels =
conda_env =
deps =
flake8
flake8-rst-docstrings
black
commands =
make lint
allowlist_externals =
make
[testenv:docs]
description = Run Build of xscen Documentation
conda_deps =
conda_env = environment-dev.yml
commands =
make docs
allowlist_externals =
make
[testenv:doctests]
description = Run documentation linters and doctests with pytest under {basepython}
conda_deps =
conda_env = environment-dev.yml
commands =
pytest --no-cov --nbval docs/notebooks --durations=10
pytest --xdoctest xscen --durations=10
[testenv]
description = Run tests with pytest under {basepython} (Anaconda distribution)
setenv =
PYTEST_ADDOPTS = "--color=yes"
PYTHONPATH = {toxinidir}
passenv =
GITHUB_*
download = true
conda_channels =
conda-forge
defaults
conda_deps =
pytest
pytest-cov
xdoctest
conda_env = environment.yml
install_command = python -m pip install --no-user {opts} {packages}
commands_pre =
pip list
pip check
commands =
pytest --cov xscen