-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
58 lines (48 loc) · 1.4 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
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = {py39,py310,py311}-{lint,installed,unit,all,simple}-{default}-{dev,pkg}
build = wheel
[_simple]
description = Install nbsite without any optional dependencies
deps = .
commands = python -c "import nbsite; print(nbsite.__version__)"
[_lint]
description = Flake check
deps = .[tests]
commands = flake8
[_installed]
description = Run unit tests
deps = .[tests]
commands = python -c "import nbsite"
[_unit]
description = Run unit tests
deps = .[tests]
commands = pytest nbsite
[_all]
description = All the tests...need to clean up/separate
deps = .[tests]
commands = {[_lint]commands}
{[_unit]commands}
[testenv]
changedir = {envtmpdir}
deps = lint: {[_lint]deps}
installed: {[_installed]deps}
unit: {[_unit]deps}
all: {[_all]deps}
commands = unit: {[_unit]commands}
installed: {[_installed]commands}
lint: {[_lint]commands}
all: {[_all]commands}
simple: {[_simple]commands}
[flake8]
include = *.py
# - run_tests.py is generated by conda build, which appears to have a
# bug resulting in code being duplicated a couple of times.
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py
ignore = E,
W
[pytest]
addopts = -v --pyargs
norecursedirs = doc .git dist build _build .ipynb_checkpoints
markers =
slow