flake8
checking for jupyter notebooks.
Basically this is a hack on the flake8
's Application
class,
which adds parsing and a cell based formatter for *.ipynb
files.
- flake8 CLI tests for jupyter notebooks
- Full base functionality of
flake8
and its plugins - Input cell based error formating
- Report fine tuning with cell-tags (
flake8-noqa-tags
see usage)
If you had a notebook with name example_notebook.ipynb
, where the code cell
which was executed as 34th cell (In[34]
) had the following code:
bad_formated_dict = {"missing":"space"}
running flake8_nb
would result in the following output.
$ flake8_nb example_notebook.ipynb
example_notebook.ipynb#In[34]:1:31: E231 missing whitespace after ':'
Thanks goes to these wonderful people (emoji key):
Sebastian Weigand ๐ป ๐ค ๐ง ๐ ๐ |
Jt Miclat ๐ |
Philipp Eisenhauer ๐ |
Shoma Okamoto |
This project follows the all-contributors specification. Contributions of any kind welcome!