summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flake8/checker.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flake8/checker.py b/src/flake8/checker.py
index 863024b..569eafa 100644
--- a/src/flake8/checker.py
+++ b/src/flake8/checker.py
@@ -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)