forked from holoviz/colorcet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
58 lines (47 loc) · 1.44 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 use with pyctdev (but should work with tox alone)
[tox]
envlist = {py27,py36,py37}-{lint,unit,unit_extra,examples,all}-{default}-{dev,pkg}
build = wheel
[_lint]
description = Lint check python code and notebooks
deps = .[tests]
commands = flake8
pytest --nbsmoke-lint -k ".ipynb"
[_unit]
description = There are just some basic unit tests so far
deps = .[tests]
commands = pytest colorcet
[_unit_extra]
description = Run the unit tests with pytest-mpl and matplotlib
deps = .[examples,tests_extra]
commands = pytest colorcet --mpl
[_examples]
description = Test that the examples run without exceptions
deps = .[examples,tests]
commands = pytest --nbsmoke-run -k ".ipynb"
[_all]
description = Run all the tests
deps = .[examples, tests]
commands = {[_lint]commands}
{[_unit]commands}
{[_examples]commands}
[testenv]
changedir = {envtmpdir}
commands = unit: {[_unit]commands}
unit_extra: {[_unit_extra]commands}
lint: {[_lint]commands}
examples: {[_examples]commands}
all: {[_all]commands}
deps = unit: {[_unit]deps}
unit_extra: {[_unit_extra]deps}
lint: {[_lint]deps}
examples: {[_examples]deps}
all: {[_all]deps}
[pytest]
addopts = -v --pyargs
norecursedirs = doc .git dist build _build .ipynb_checkpoints
[flake8]
include = *.py
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py
ignore = E,
W