-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
62 lines (50 loc) · 1.63 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
59
60
61
62
# Note: this file is for project maintainers, and is only partially
# used at the moment (only partial transition to pyctdev).
[tox]
envlist = {py36}-{flakes,examples,all}-{default}-{dev,pkg}
[_flakes]
description = TODO: Flake check python and notebooks
deps = .[tests]
commands =
#commands = flake8
# pytest --nbsmoke-lint -k ".ipynb"
[_unit]
description = Run unit tests
deps = .[tests]
commands = pytest earthsim
[_examples]
description = Test that default examples run
deps = .[tests]
commands = pytest --nbsmoke-run -k ".ipynb"
[_all]
deps = .[tests]
commands = {[_flakes]commands}
{[_examples]commands}
{[_unit]commands}
[_pkg]
commands = earthsim copy-examples --path=. --include-data --force
[testenv]
changedir = {envtmpdir}
commands = pkg: {[_pkg]commands}
flakes: {[_flakes]commands}
examples: {[_examples]commands}
all: {[_all]commands}
deps = flakes: {[_flakes]deps}
examples: {[_examples]deps}
all: {[_all]deps}
[pytest]
addopts = -v --pyargs --doctest-modules --doctest-ignore-import-errors
norecursedirs = doc .git dist build _build .ipynb_checkpoints
nbsmoke_skip_run = ^.*_Sweep.*\.ipynb$
^.*_Batched.*\.ipynb$
^.*_Workflow.*\.ipynb$
^.*Specifying.*\.ipynb$
^.*Grabcut.*\.ipynb$
nbsmoke_cell_timeout = 1800
[flake8]
include = *.py
# run_test.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