summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-03-30 02:27:03 +0000
committerAnthony Sottile <asottile@umich.edu>2021-03-30 02:27:03 +0000
commit00f92087dac5b49acde245be91253dc14b612000 (patch)
tree84759b62e11c2d829d38416a3cbb7a4a6a0650ce
parent01d72d89b14d2377a25b2aa98415dbf145be7d8f (diff)
parent8ba8bc9fed37eaa36141b11ba226b81db363ca40 (diff)
downloadflake8-00f92087dac5b49acde245be91253dc14b612000.tar.gz
Merge branch 'yesqa' into 'master'
remove unused noqa comments See merge request pycqa/flake8!469
-rw-r--r--setup.py2
-rw-r--r--src/flake8/plugins/manager.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 20ad3d3..a64bdf2 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,6 @@ import sys
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()
diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py
index 3d4371d..abfd14b 100644
--- a/src/flake8/plugins/manager.py
+++ b/src/flake8/plugins/manager.py
@@ -396,7 +396,7 @@ class PluginTypeManager(object):
@staticmethod
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)
if method is not None and callable(method):
return method(optmanager, *args, **kwargs)