Skip to content

Commit

Permalink
Added jupytext and pre-commit notebook code quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathijs995 committed Apr 30, 2023
1 parent 8c386c0 commit d318bf9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
repos:
- repo: https://github.com/mwouts/jupytext
rev: v1.14.0
hooks:
- id: jupytext
args: [--from, ipynb, --to, md:myst, --sync]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-pyupgrade
args: ["--py38-plus"]
- id: nbqa-isort
args: ["--float-to-top"]
- id: nbqa-flake8

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
3 changes: 2 additions & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ sphinx==5.3.0
sphinx_book_theme==1.0.1
myst_nb==0.17.2
sphinxcontrib_bibtex==2.5.0
sphinx-autodoc-typehints==1.23.0
sphinx-autodoc-typehints==1.23.0
jupytext==1.14.5

0 comments on commit d318bf9

Please sign in to comment.