Giter Site home page Giter Site logo

marcogorelli / flake8-nb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from s-weigand/flake8-nb

0.0 2.0 0.0 371 KB

Flake8 checking for jupyter notebooks

License: Apache License 2.0

Makefile 2.47% Python 83.13% Jupyter Notebook 14.19% Shell 0.21%

flake8-nb's Introduction

flake8-nb

PyPi Version Conda Version Supported Python Versions License

Actions Status Documentation Status codecov Dependabot Status

BCH compliance Code quality All Contributors Code style Python: black Binder

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

๐Ÿ’ป ๐Ÿค” ๐Ÿšง ๐Ÿ“† ๐Ÿš‡ โš ๏ธ ๐Ÿ“–

Jt Miclat

๐Ÿ›

Philipp Eisenhauer

๐Ÿ›

Shoma Okamoto

โš ๏ธ

This project follows the all-contributors specification. Contributions of any kind welcome!

flake8-nb's People

Contributors

allcontributors[bot] avatar dependabot-preview[bot] avatar marcogorelli avatar pyup-bot avatar s-weigand avatar shmokmt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.