def filter_line(line: str, context: RunContext) -> typing.Optional[str]:
if context.filters is not None:<EOL><INDENT>for filter_ in context.filters:<EOL><INDENT>if re.match(filter_, line):<EOL><INDENT>return None<EOL><DEDENT><DEDENT><DEDENT>return line<EOL>
Filters out lines that match a given regex

:param line: line to filter
:type line: str
:param context: run context
:type context: _RunContext
:return: line if it doesn't match the filter
:rtype: optional str