get_flake8_rules_dict
- get_flake8_rules_dict(notebook_cell: Dict[str, Any]) Dict[str, List[str]] [source]
Parse all flake8 tags of a cell to a
rules_dict
.rules_dict
contains lists of rules, depending on if the tag is a cell or a line tag.- Parameters:
notebook_cell (NotebookCell) – Dict representation of a notebook cell as parsed from JSON.
- Returns:
Dict with all cell and line rules. Line rules have the line number as key and cell rules have ‘cell as key’.
- Return type:
RulesDict
See also