-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (38 loc) · 1.09 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
[tox]
envlist = pytest, sphinx
[testenv]
usedevelop = true
passenv = CI
[testenv:pytest]
conda_channels =
conda-forge
nodefaults
conda_deps =
pytask >=0.2
pytask-parallel >=0.2
pytest
pytest-cov
pytest-xdist
commands =
pytest {posargs}
[testenv:sphinx]
changedir = docs/source
conda_env = docs/docs_environment.yml
commands =
sphinx-build -T -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
- sphinx-build -T -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/linkcheck
[pytest]
addopts = --doctest-modules
filterwarnings =
ignore: the imp module is deprecated in favour of importlib
ignore: Using or importing the ABCs from 'collections' instead of
ignore: The (parser|symbol) module is deprecated and will be removed in future
junit_family = xunit2
markers =
wip: Tests that are work-in-progress.
unit: Flag for unit tests which target mainly a single function.
integration: Flag for integration tests which may comprise of multiple unit tests.
end_to_end: Flag for tests that cover the whole program.
norecursedirs =
.idea
.tox