update_inline_flake8_noqa

update_inline_flake8_noqa(source_line: str, rules_list: list[str]) str[source]

Update source_line with flake8 noqa comments.

This is done extraction flake8-tags as well as inline flake8 comments.

Parameters:
  • source_line (str) – Single line of sourcecode from a cell.

  • rules_list (list[str]) – List of rules which should be applied to source_line.

Returns:

source_line with flake8 noqa comments.

Return type:

str