Flake8 based checking for jupyter notebooks
Project description
flake8-nb
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.
Features
- 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)
Example
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 ':'
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Sebastian Weigand 💻 🤔 🚧 📆 🚇 ⚠️ 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
History
0.1.1 (2019-10-24)
- added console-script 'flake8-nb' as alias for 'flake8_nb'
0.1.0 (2019-10-22)
- First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8_nb-0.1.1.tar.gz
(35.8 kB
view hashes)
Built Distribution
flake8_nb-0.1.1-py3-none-any.whl
(20.7 kB
view hashes)
Close
Hashes for flake8_nb-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68fd0167071c4f5f11d71d754643d85e04256636e355373a5bf03a838c36fa41 |
|
MD5 | ce40e82d136b25351a20bf290b1ee73c |
|
BLAKE2b-256 | 785f4b58e99f19d25de0207226bc1393aa04b61627426e43fe73ce5356245a34 |