def run(self):
pydocstyle.Error.explain = self.options['<STR_LIT>']<EOL>filename, source = load_file(self.filename)<EOL>for error in pydocstyle.PEP257Checker().check_source(source, filename):<EOL><INDENT>if not hasattr(error, '<STR_LIT:code>') or ignore(error.code):<EOL><INDENT>continue<EOL><DEDENT>lineno = error.line<EOL>offset = <NUM_LIT:0>  <EOL>explanation = error.explanation if pydocstyle.Error.explain else '<STR_LIT>'<EOL>text = '<STR_LIT>'.format(error.code, error.message.split('<STR_LIT>', <NUM_LIT:1>)[<NUM_LIT:1>], explanation)<EOL>yield lineno, offset, text, Main<EOL><DEDENT>
Run analysis on a single file.