-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tox.ini with envs lint, format, run-notebooks
- Loading branch information
1 parent
75b81e0
commit b43fcdb
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[tox] | ||
lint_folders = | ||
"{toxinidir}/notebooks" | ||
|
||
[testenv] | ||
|
||
[testenv:run-notebooks] | ||
deps = | ||
numpy | ||
scipy | ||
matplotlib | ||
ipywidgets | ||
jupyter | ||
commands = | ||
jupyter execute {toxinidir}/notebooks/01-BasisExpansion.ipynb | ||
|
||
[testenv:format] | ||
# formats project source code files | ||
skip_install = true | ||
deps = | ||
black[jupyter] | ||
commands = | ||
black {[tox]lint_folders} | ||
|
||
[testenv:lint] | ||
skip_install = true | ||
deps = | ||
flake8-nb | ||
commands = | ||
flake8_nb {[tox]lint_folders} | ||
|
||
[flake8_nb] | ||
max_line_length = 88 |