-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
38 lines (32 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
# To use tox, see https://tox.readthedocs.io
# Simply pip or conda install tox
# If you use conda, you may also want to install tox-conda
# then run `tox` or `tox -e py37 -- {pytest args}`
# To ensure rebuild of the tox environment,
# either simple delete the .tox folder or use `tox -r`
[tox]
envlist = py38
[testenv]
usedevelop = true
[testenv:py{38,39,310,311}]
extras = testing
commands = pytest {posargs}
[testenv:docs-{clean,update}]
extras = docs
changedir = docs
whitelist_externals = make
setenv =
PYDEVD_DISABLE_FILE_VALIDATION = 1
commands =
clean: make clean
make
[pytest]
nb_file_fnmatch = tutorial_*.ipynb test_*.ipynb
nb_diff_replace =
/cells/*/outputs/*/text \/([A-z0-9-_+]+\/)*[A-z0-9-_+]+\.ipynb "/.../<filename>.ipynb"
/cells/*/outputs/*/text rootdir\:\s\/([A-z0-9-_+]+\/)*[A-z0-9-_+]+ "rootdir: /.../<dir>"
/cells/*/outputs/*/text in\s[\.0-9]+\sseconds "in xxx seconds"
/cells/*/outputs/*/text platform\s(darwin|linux).*\n "platform info ...\n"
/cells/*/outputs/*/text plugins\:\s.*\n "plugin info ...\n"
/cells/*/outputs/*/text "exec_cwd\=\\\'\/([A-z0-9-_+]+\/)*[A-z0-9-_+]+\\\'" "exec_cwd=/.../<dir>"
/cells/*/outputs/*/traceback \<ipython\-input\-[\-0-9a-zA-Z]*\> "<ipython-input-XXXX>"