mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-03 03:56:52 +00:00
Add debugging utility for FileChecker
This commit is contained in:
parent
68c6577564
commit
feec0754bd
2 changed files with 13 additions and 0 deletions
|
|
@ -381,6 +381,10 @@ class FileChecker(object):
|
|||
self.should_process = not self.processor.should_ignore_file()
|
||||
self.statistics['physical lines'] = len(self.processor.lines)
|
||||
|
||||
def __repr__(self):
|
||||
"""Provide helpful debugging representation."""
|
||||
return 'FileChecker for {}'.format(self.filename)
|
||||
|
||||
def _make_processor(self):
|
||||
try:
|
||||
return processor.FileProcessor(self.filename, self.options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue