-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
49 lines (43 loc) · 1001 Bytes
/
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
; See https://tox.wiki/en
[tox]
requires =
tox>=4
; run lint by default when just calling "tox"
env_list = lint
; ENVIRONMENTS
; ------------
[style]
description = common environment for style checkers (rely on pre-commit hooks)
skip_install = true
deps =
pre-commit
; COMMANDS
; --------
[testenv:lint]
description = run all linters and formatters
skip_install = true
deps =
{[style]deps}
commands =
pre-commit run --all-files --show-diff-on-failure {posargs:}
[testenv:flake8]
description = run flake8
skip_install = true
deps =
{[style]deps}
commands =
pre-commit run --all-files --show-diff-on-failure flake8
; COMMANDS
; --------
[testenv:test_notebook]
description = run jupyter notebook
extras = test
deps =
seaborn
commands =
pytest --nbmake examples/comparison_neurodesign.ipynb {posargs:}
[testenv:tests]
description = run tests on latest version of all dependencies
extras = test
commands =
pytest --cov=neurodesign --cov-report=xml tests {posargs:}