/
tox.ini
40 lines (32 loc) · 1.04 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
# For use with pyct (https://github.com/pyviz/pyct), but just standard
# tox config (works with tox alone).
[tox]
# python version test group extra envs extra commands
envlist = {py36,py37}-{lint,test,all}-{default,examples}-{dev}
build = wheel
[_lint]
description = Lint the examples
deps = .[examples]
commands = pytest --nbsmoke-lint -k "*.ipynb" --ignore envs
[_test]
description = Test that examples run
deps = .[examples]
commands = pytest --nbsmoke-run -k "*.ipynb" --ignore envs
[_all]
description = Run all tests
deps = .[examples]
commands = {[_lint]commands}
{[_test]commands}
[testenv]
changedir = {envtmpdir}
commands = lint: {[_lint]commands}
test: {[_test]commands}
all: {[_all]commands}
deps = lint: {[_lint]commands}
test: {[_test]commands}
all: {[_all]deps}
[pytest]
addopts = -v --pyargs --doctest-modules --doctest-ignore-import-errors
norecursedirs = doc .git dist build _build .ipynb_checkpoints apps
nbsmoke_cell_timout = 360
nbsmoke_skip_run = .*iex_trading/IEX_to_CSV.ipynb$