diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-07 13:34:35 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-07 13:34:35 +0200 |
commit | 2a3b9a2e26fc9570c2dd2f070257968a2b3a1149 (patch) | |
tree | d104874dbc13e878303a37bb0e7f6d5c4ec42304 /searx/search | |
parent | f0059b80edd892cea2ed42c8fe350e9377956c9d (diff) | |
download | searxng-2a3b9a2e26fc9570c2dd2f070257968a2b3a1149.tar.gz searxng-2a3b9a2e26fc9570c2dd2f070257968a2b3a1149.zip |
[pylint] searx: drop no longer needed 'missing-function-docstring'
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/search')
-rw-r--r-- | searx/search/__init__.py | 2 | ||||
-rw-r--r-- | searx/search/checker/__main__.py | 2 | ||||
-rw-r--r-- | searx/search/checker/background.py | 2 | ||||
-rw-r--r-- | searx/search/processors/abstract.py | 2 | ||||
-rw-r--r-- | searx/search/processors/online_currency.py | 2 |
5 files changed, 3 insertions, 7 deletions
diff --git a/searx/search/__init__.py b/searx/search/__init__.py index 041a54c4b..d8d3e1e1c 100644 --- a/searx/search/__init__.py +++ b/searx/search/__init__.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint -# pylint: disable=missing-module-docstring, missing-function-docstring +# pylint: disable=missing-module-docstring import typing import threading diff --git a/searx/search/checker/__main__.py b/searx/search/checker/__main__.py index e1de860b7..4ce4ca76b 100644 --- a/searx/search/checker/__main__.py +++ b/searx/search/checker/__main__.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint -# pylint: disable=missing-module-docstring, missing-function-docstring +# pylint: disable=missing-module-docstring import sys import io diff --git a/searx/search/checker/background.py b/searx/search/checker/background.py index f79a5d2df..d9f11a71c 100644 --- a/searx/search/checker/background.py +++ b/searx/search/checker/background.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint -# pylint: disable=missing-module-docstring, missing-function-docstring +# pylint: disable=missing-module-docstring import json import random diff --git a/searx/search/processors/abstract.py b/searx/search/processors/abstract.py index 81724f052..c8d81c026 100644 --- a/searx/search/processors/abstract.py +++ b/searx/search/processors/abstract.py @@ -19,8 +19,6 @@ from searx.utils import get_engine_from_settings logger = logger.getChild('searx.search.processor') SUSPENDED_STATUS = {} -# pylint: disable=missing-function-docstring - class SuspendedStatus: """Class to handle suspend state.""" diff --git a/searx/search/processors/online_currency.py b/searx/search/processors/online_currency.py index 4f642fa72..3213a11e5 100644 --- a/searx/search/processors/online_currency.py +++ b/searx/search/processors/online_currency.py @@ -12,8 +12,6 @@ from .online import OnlineProcessor parser_re = re.compile('.*?(\\d+(?:\\.\\d+)?) ([^.0-9]+) (?:in|to) ([^.0-9]+)', re.I) -# pylint: disable=missing-function-docstring - def normalize_name(name): name = name.lower().replace('-', ' ').rstrip('s') name = re.sub(' +', ' ', name) |