diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2022-06-03 15:41:52 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-06-03 15:41:52 +0200 |
| commit | 2de007138ca1820e865c574cc13429d5da3f019f (patch) | |
| tree | e51c29aeebc52cd0c2cb3daa45fbfacf396cd778 /searx/plugins | |
| parent | 658e04077b2f647156965610461755682d7cd399 (diff) | |
[fix] prepare for pylint 2.14.0
Remove issue reported by Pylint 2.14.0:
- no-self-use: has been moved to optional extension [1]
- The refactoring checker now also raises 'consider-using-generator' messages
for max(), min() and sum(). [2]
.pylintrc:
- <option name>-hint has been removed since long, Pylint 2.14.0 raises an
error on invalid options
- bad-continuation and bad-whitespace have been removed [3]
[1] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers
[2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/full.html#what-s-new-in-pylint-2-14-0
[2] https://pylint.pycqa.org/en/latest/whatsnew/2/2.6/summary.html#summary-release-highlights
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/plugins')
| -rw-r--r-- | searx/plugins/__init__.py | 1 | ||||
| -rw-r--r-- | searx/plugins/search_on_category_select.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 3d431f329..8ece94358 100644 --- a/searx/plugins/__init__.py +++ b/searx/plugins/__init__.py @@ -198,7 +198,6 @@ class PluginStore: self.plugins.append(plugin) def call(self, ordered_plugin_list, plugin_type, *args, **kwargs): - # pylint: disable=no-self-use ret = True for plugin in ordered_plugin_list: if hasattr(plugin, plugin_type): diff --git a/searx/plugins/search_on_category_select.py b/searx/plugins/search_on_category_select.py index 99066e23e..85b73a9bd 100644 --- a/searx/plugins/search_on_category_select.py +++ b/searx/plugins/search_on_category_select.py @@ -18,7 +18,7 @@ from flask_babel import gettext name = gettext('Search on category select') description = gettext( - 'Perform search immediately if a category selected. ' 'Disable to select multiple categories. (JavaScript required)' + 'Perform search immediately if a category selected. Disable to select multiple categories. (JavaScript required)' ) default_on = True preference_section = 'ui' |