Enable static checks
Closed this issue · 1 comments
elvijs commented
We should automatically run black, lint and isort on the code as well as the notebooks (see the suggestion below).
format_notebooks:
jupytext --pipe 'isort - --treat-comment-as-code "# %%" --float-to-top' $(NOTEBOOK_PATH)/*.ipynb
jupytext --sync --pipe black $(NOTEBOOK_PATH)/*.ipynb
This runs black and isort on the notebooks which is pretty cool
Originally posted by @alexisboukouvalas in #22 (comment)