flake8_tag_to_rules_dict

flake8_tag_to_rules_dict(flake8_tag: str) Dict[str, List[str]][source]

Parse a flake8 tag to a rules_dict.

rules_dict contains lists of rules, depending on if the tag is a cell or a line tag.

Parameters:

flake8_tag (str) – String of a flake8-tag.

Returns:

Dict with cell and line rules. Line rules have the line number as key and cell rules have ‘cell as key’.

Return type:

RulesDict