Skip to content

Commit 294b651

Browse files
committed
add tox.ini with envs lint, format, run-notebooks
1 parent 097753e commit 294b651

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

tox.ini

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[tox]
2+
lint_folders =
3+
"{toxinidir}/notebooks"
4+
5+
[testenv]
6+
7+
[testenv:run-notebooks]
8+
deps =
9+
numpy
10+
scipy
11+
matplotlib
12+
ipywidgets
13+
jupyter
14+
commands =
15+
jupyter execute {toxinidir}/notebooks/01-BasisExpansion.ipynb
16+
17+
[testenv:format]
18+
# formats project source code files
19+
skip_install = true
20+
deps =
21+
black[jupyter]
22+
commands =
23+
black {[tox]lint_folders}
24+
25+
[testenv:lint]
26+
skip_install = true
27+
deps =
28+
flake8-nb
29+
commands =
30+
flake8_nb {[tox]lint_folders}
31+
32+
[flake8_nb]
33+
max_line_length = 88

0 commit comments

Comments
 (0)