summaryrefslogtreecommitdiff
path: root/coverage/plugin.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-14 08:13:06 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-14 08:13:06 -0500
commit0d6bf61e35421bbe257ef344d4bee660a6dfeb5e (patch)
tree1959a66267a71654f08bcc2e67b9a3a8bb629b74 /coverage/plugin.py
parent5f65173b7dccde1b42576a2fde2a05815b3028da (diff)
downloadpython-coveragepy-0d6bf61e35421bbe257ef344d4bee660a6dfeb5e.tar.gz
Pylint
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r--coverage/plugin.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py
index 29e4561..60f3ea5 100644
--- a/coverage/plugin.py
+++ b/coverage/plugin.py
@@ -36,7 +36,7 @@ class CoveragePlugin(object):
"""
self.options = options
- def file_tracer(self, filename):
+ def file_tracer(self, filename): # pylint: disable=unused-argument
"""Return a FileTracer object for a file.
Every source file is offered to the plugin to give it a chance to take
@@ -60,7 +60,7 @@ class CoveragePlugin(object):
"""
return None
- def file_reporter(self, filename):
+ def file_reporter(self, filename): # pylint: disable=unused-argument
"""Return the FileReporter class to use for filename.
This will only be invoked if `filename` returns non-None from
@@ -119,7 +119,7 @@ class FileTracer(object):
"""
return False
- def dynamic_source_filename(self, filename, frame):
+ def dynamic_source_filename(self, filename, frame): # pylint: disable=unused-argument
"""Returns a dynamically computed source filename.
Some plugins need to compute the source filename dynamically for each
@@ -163,12 +163,14 @@ class FileTracer(object):
class FileReporter(object):
"""Support needed for files during the reporting phase."""
def __init__(self, filename):
+ # TODO: document that this init happens.
self.filename = filename
def __repr__(self):
return (
- "<{this.__class__.__name__}"
- " filename={this.filename!r}>".format(this=self)
+ # pylint: disable=redundant-keyword-arg
+ "<{self.__class__.__name__}"
+ " filename={self.filename!r}>".format(self=self)
)
# Annoying comparison operators. Py3k wants __lt__ etc, and Py2k needs all