def run_pylint(filename):
ARGS = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT:n>'<EOL>]<EOL>pylint_output = WritableObject()<EOL>Run([filename]+ARGS, reporter=TextReporter(pylint_output), exit=False)<EOL>lines = []<EOL>for line in pylint_output.read():<EOL><INDENT>if not line.startswith('<STR_LIT:*>') and line != '<STR_LIT:\n>':<EOL><INDENT>lines.append(line)<EOL><DEDENT><DEDENT>return lines<EOL>
Runs pylint on a given file
:param filename:
:return: list of pylint errors