mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 22:04:17 +00:00
Merge branch 'yesqa' into 'master'
remove unused noqa comments See merge request pycqa/flake8!469
This commit is contained in:
commit
461f44c8b9
2 changed files with 2 additions and 2 deletions
2
setup.py
2
setup.py
|
|
@ -5,6 +5,6 @@ import sys
|
||||||
|
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) # noqa
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
|
||||||
|
|
||||||
setuptools.setup()
|
setuptools.setup()
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ class PluginTypeManager(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _generate_call_function(method_name, optmanager, *args, **kwargs):
|
def _generate_call_function(method_name, optmanager, *args, **kwargs):
|
||||||
def generated_function(plugin): # noqa: D105
|
def generated_function(plugin):
|
||||||
method = getattr(plugin, method_name, None)
|
method = getattr(plugin, method_name, None)
|
||||||
if method is not None and callable(method):
|
if method is not None and callable(method):
|
||||||
return method(optmanager, *args, **kwargs)
|
return method(optmanager, *args, **kwargs)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue