diff options
Diffstat (limited to 'searx/search')
-rw-r--r-- | searx/search/__init__.py | 1 | ||||
-rw-r--r-- | searx/search/checker/__init__.py | 1 | ||||
-rw-r--r-- | searx/search/checker/__main__.py | 1 | ||||
-rw-r--r-- | searx/search/checker/background.py | 4 | ||||
-rw-r--r-- | searx/search/checker/impl.py | 12 | ||||
-rw-r--r-- | searx/search/checker/scheduler.py | 1 | ||||
-rw-r--r-- | searx/search/models.py | 3 | ||||
-rw-r--r-- | searx/search/processors/__init__.py | 1 | ||||
-rw-r--r-- | searx/search/processors/abstract.py | 2 | ||||
-rw-r--r-- | searx/search/processors/offline.py | 2 | ||||
-rw-r--r-- | searx/search/processors/online.py | 2 | ||||
-rw-r--r-- | searx/search/processors/online_currency.py | 1 | ||||
-rw-r--r-- | searx/search/processors/online_dictionary.py | 1 | ||||
-rw-r--r-- | searx/search/processors/online_url_search.py | 1 |
14 files changed, 10 insertions, 23 deletions
diff --git a/searx/search/__init__.py b/searx/search/__init__.py index fcdc1f72f..f0cd6765f 100644 --- a/searx/search/__init__.py +++ b/searx/search/__init__.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint # pylint: disable=missing-module-docstring, too-few-public-methods import threading diff --git a/searx/search/checker/__init__.py b/searx/search/checker/__init__.py index 7d779a282..f6891a5db 100644 --- a/searx/search/checker/__init__.py +++ b/searx/search/checker/__init__.py @@ -1,4 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later +# pylint: disable=missing-module-docstring from .impl import Checker from .background import initialize, get_result diff --git a/searx/search/checker/__main__.py b/searx/search/checker/__main__.py index 340c27187..984c8526c 100644 --- a/searx/search/checker/__main__.py +++ b/searx/search/checker/__main__.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint # pylint: disable=missing-module-docstring import sys diff --git a/searx/search/checker/background.py b/searx/search/checker/background.py index f16e4c25c..5e9d23e00 100644 --- a/searx/search/checker/background.py +++ b/searx/search/checker/background.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint -# pylint: disable=missing-module-docstring -# pyright: basic +# pylint: disable=missing-module-docstring, cyclic-import import json import time diff --git a/searx/search/checker/impl.py b/searx/search/checker/impl.py index b5dff1fd2..cf1f03449 100644 --- a/searx/search/checker/impl.py +++ b/searx/search/checker/impl.py @@ -1,4 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later +# pylint: disable=missing-module-docstring, invalid-name import gc import typing @@ -149,7 +150,7 @@ def _search_query_diff( return (common, diff) -class TestResults: +class TestResults: # pylint: disable=missing-class-docstring __slots__ = 'errors', 'logs', 'languages' @@ -181,7 +182,7 @@ class TestResults: yield (test_name, error) -class ResultContainerTests: +class ResultContainerTests: # pylint: disable=missing-class-docstring __slots__ = 'test_name', 'search_query', 'result_container', 'languages', 'stop_test', 'test_results' @@ -210,7 +211,6 @@ class ResultContainerTests: if langStr: self.languages.add(langStr) self.test_results.add_language(langStr) - return None def _check_result(self, result): if not _check_no_html(result.get('title', '')): @@ -319,7 +319,7 @@ class ResultContainerTests: self._record_error(('{!r} not found in the title'.format(title))) -class CheckerTests: +class CheckerTests: # pylint: disable=missing-class-docstring, too-few-public-methods __slots__ = 'test_results', 'test_name', 'result_container_tests_list' @@ -351,7 +351,7 @@ class CheckerTests: ) -class Checker: +class Checker: # pylint: disable=missing-class-docstring __slots__ = 'processor', 'tests', 'test_results' @@ -377,7 +377,7 @@ class Checker: p.append(l) for kwargs in itertools.product(*p): - kwargs = {k: v for k, v in kwargs} + kwargs = dict(kwargs) query = kwargs['query'] params = dict(kwargs) del params['query'] diff --git a/searx/search/checker/scheduler.py b/searx/search/checker/scheduler.py index 7d7e90769..c0d3f799a 100644 --- a/searx/search/checker/scheduler.py +++ b/searx/search/checker/scheduler.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint # pylint: disable=missing-module-docstring """Lame scheduler which use Redis as a source of truth: * the Redis key SearXNG_checker_next_call_ts contains the next time the embedded checker should run. diff --git a/searx/search/models.py b/searx/search/models.py index ec1188fbb..62424390f 100644 --- a/searx/search/models.py +++ b/searx/search/models.py @@ -1,4 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later +# pylint: disable=missing-module-docstring import typing import babel @@ -52,7 +53,7 @@ class SearchQuery: external_bang: typing.Optional[str] = None, engine_data: typing.Optional[typing.Dict[str, str]] = None, redirect_to_first_result: typing.Optional[bool] = None, - ): + ): # pylint:disable=too-many-arguments self.query = query self.engineref_list = engineref_list self.lang = lang diff --git a/searx/search/processors/__init__.py b/searx/search/processors/__init__.py index 6d2f97fbb..ea049e79f 100644 --- a/searx/search/processors/__init__.py +++ b/searx/search/processors/__init__.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """Implement request processors used by engine-types. diff --git a/searx/search/processors/abstract.py b/searx/search/processors/abstract.py index baa031a06..f89302a92 100644 --- a/searx/search/processors/abstract.py +++ b/searx/search/processors/abstract.py @@ -1,6 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint - """Abstract base classes for engine request processors. """ diff --git a/searx/search/processors/offline.py b/searx/search/processors/offline.py index ca5b9f050..8835bfbf2 100644 --- a/searx/search/processors/offline.py +++ b/searx/search/processors/offline.py @@ -1,6 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint - """Processors for engine-type: ``offline`` """ diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py index 9c821bb5f..acc3792f5 100644 --- a/searx/search/processors/online.py +++ b/searx/search/processors/online.py @@ -1,6 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint - """Processors for engine-type: ``online`` """ diff --git a/searx/search/processors/online_currency.py b/searx/search/processors/online_currency.py index eb242a9f6..7d6811e6b 100644 --- a/searx/search/processors/online_currency.py +++ b/searx/search/processors/online_currency.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """Processors for engine-type: ``online_currency`` """ diff --git a/searx/search/processors/online_dictionary.py b/searx/search/processors/online_dictionary.py index 92a688fab..968c180d0 100644 --- a/searx/search/processors/online_dictionary.py +++ b/searx/search/processors/online_dictionary.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """Processors for engine-type: ``online_dictionary`` """ diff --git a/searx/search/processors/online_url_search.py b/searx/search/processors/online_url_search.py index 9c8890767..3db970df0 100644 --- a/searx/search/processors/online_url_search.py +++ b/searx/search/processors/online_url_search.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """Processors for engine-type: ``online_url_search`` """ |