mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
Remove unused verify_requirements argument
This commit is contained in:
parent
b3f205a936
commit
b8dbb9b597
1 changed files with 2 additions and 8 deletions
|
|
@ -154,15 +154,13 @@ class Plugin(object):
|
||||||
LOG.critical(msg)
|
LOG.critical(msg)
|
||||||
raise TypeError(msg)
|
raise TypeError(msg)
|
||||||
|
|
||||||
def load_plugin(self, verify_requirements=False):
|
def load_plugin(self):
|
||||||
"""Retrieve the plugin for this entry-point.
|
"""Retrieve the plugin for this entry-point.
|
||||||
|
|
||||||
This loads the plugin, stores it on the instance and then returns it.
|
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
|
It does not reload it after the first time, it merely returns the
|
||||||
cached plugin.
|
cached plugin.
|
||||||
|
|
||||||
:param bool verify_requirements:
|
|
||||||
Does nothing, retained for backwards compatibility.
|
|
||||||
:returns:
|
:returns:
|
||||||
Nothing
|
Nothing
|
||||||
"""
|
"""
|
||||||
|
|
@ -236,17 +234,13 @@ class Plugin(object):
|
||||||
class PluginManager(object): # pylint: disable=too-few-public-methods
|
class PluginManager(object): # pylint: disable=too-few-public-methods
|
||||||
"""Find and manage plugins consistently."""
|
"""Find and manage plugins consistently."""
|
||||||
|
|
||||||
def __init__(
|
def __init__(self, namespace, local_plugins=None):
|
||||||
self, namespace, verify_requirements=False, local_plugins=None
|
|
||||||
):
|
|
||||||
"""Initialize the manager.
|
"""Initialize the manager.
|
||||||
|
|
||||||
:param str namespace:
|
:param str namespace:
|
||||||
Namespace of the plugins to manage, e.g., 'flake8.extension'.
|
Namespace of the plugins to manage, e.g., 'flake8.extension'.
|
||||||
:param list local_plugins:
|
:param list local_plugins:
|
||||||
Plugins from config (as "X = path.to:Plugin" strings).
|
Plugins from config (as "X = path.to:Plugin" strings).
|
||||||
:param bool verify_requirements:
|
|
||||||
Does nothing, retained for backwards compatibility.
|
|
||||||
"""
|
"""
|
||||||
self.namespace = namespace
|
self.namespace = namespace
|
||||||
self.plugins = {}
|
self.plugins = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue