Skip to content

Commit

Permalink
add tox.ini with envs lint, format, run-notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Feb 27, 2024
1 parent 75b81e0 commit b43fcdb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tox.ini
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

0 comments on commit b43fcdb

Please sign in to comment.