summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stapleton Cordasco <graffatcolmingov@gmail.com>2018-11-22 12:29:58 +0000
committerIan Stapleton Cordasco <graffatcolmingov@gmail.com>2018-11-22 12:29:58 +0000
commit93ad9617b0a192836cbc9a591b5abe74e2c85ba7 (patch)
treec15b237405e032dc352588255c075a0fa2afca5a
parent838b508848cfdc0655cf29a462625f828e072e9d (diff)
parentb8dbb9b597634c3cc7ee6a74fc5d89120ba1a8de (diff)
downloadflake8-93ad9617b0a192836cbc9a591b5abe74e2c85ba7.tar.gz
Merge branch 'remove_unused_verify_requiremetns' into 'master'
Remove unused verify_requirements argument See merge request pycqa/flake8!267
-rw-r--r--src/flake8/plugins/manager.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py
index 010cfb9..411e02f 100644
--- a/src/flake8/plugins/manager.py
+++ b/src/flake8/plugins/manager.py
@@ -154,15 +154,13 @@ class Plugin(object):
LOG.critical(msg)
raise TypeError(msg)
- def load_plugin(self, verify_requirements=False):
+ def load_plugin(self):
"""Retrieve the plugin for this entry-point.
This loads the plugin, stores it on the instance and then returns it.
It does not reload it after the first time, it merely returns the
cached plugin.
- :param bool verify_requirements:
- Does nothing, retained for backwards compatibility.
:returns:
Nothing
"""
@@ -236,17 +234,13 @@ class Plugin(object):
class PluginManager(object): # pylint: disable=too-few-public-methods
"""Find and manage plugins consistently."""
- def __init__(
- self, namespace, verify_requirements=False, local_plugins=None
- ):
+ def __init__(self, namespace, local_plugins=None):
"""Initialize the manager.
:param str namespace:
Namespace of the plugins to manage, e.g., 'flake8.extension'.
:param list local_plugins:
Plugins from config (as "X = path.to:Plugin" strings).
- :param bool verify_requirements:
- Does nothing, retained for backwards compatibility.
"""
self.namespace = namespace
self.plugins = {}