cell_parsers
Module containing parsers for notebook cells.
This also includes parsers for the cell and inline tags. It heavily utilizes the mutability of lists.
Functions
Summary
Extract flake8-tags which were used as comment in a cell.
Extract all tag that start with 'flake8-noqa-' from a cell.
Extract flake8 noqa rules from normal flake8 comments .
Parse a flake8 tag to a
rules_dict.Generate a List of rules from
rules_dict.Parse all flake8 tags of a cell to a
rules_dict.Parse
notebook_cellto a dict.Update
source_linewith flake8 noqa comments.Update the rules dict
total_rules_dictwithnew_rules_dict.
Exceptions
Exception Summary
Warning thrown when a tag is badly formatted.