summaryrefslogtreecommitdiff
path: root/src/flake8/plugins
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2017-05-12 20:34:15 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2017-05-12 20:34:15 -0500
commit32f4b65b6b4bb913e8f5201fc0a718878bfec7df (patch)
tree355c4ea13f221c7ae317d6ced5cf9d89486f3a04 /src/flake8/plugins
parent0e9bbab55134be3e1ce0b57046779d3e991740c5 (diff)
downloadflake8-32f4b65b6b4bb913e8f5201fc0a718878bfec7df.tar.gz
Fix docstring violations
Diffstat (limited to 'src/flake8/plugins')
-rw-r--r--src/flake8/plugins/manager.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py
index 52b658c..80a9ef2 100644
--- a/src/flake8/plugins/manager.py
+++ b/src/flake8/plugins/manager.py
@@ -25,7 +25,7 @@ class Plugin(object):
"""Wrap an EntryPoint from setuptools and other logic."""
def __init__(self, name, entry_point):
- """"Initialize our Plugin.
+ """Initialize our Plugin.
:param str name:
Name of the entry-point as it was registered with setuptools.
@@ -97,7 +97,7 @@ class Plugin(object):
@property
def plugin(self):
- """The loaded (and cached) plugin associated with the entry-point.
+ """Load and return the plugin associated with the entry-point.
This property implicitly loads the plugin and then caches it.
"""
@@ -372,8 +372,7 @@ class PluginTypeManager(object):
@staticmethod
def _generate_call_function(method_name, optmanager, *args, **kwargs):
- def generated_function(plugin):
- """Function that attempts to call a specific method on a plugin."""
+ def generated_function(plugin): # noqa: D105
method = getattr(plugin, method_name, None)
if (method is not None and
isinstance(method, collections.Callable)):