From 542f7d0d7bd1a12e1884ba4a1508b40e2514d472 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 11 Mar 2024 14:06:26 +0100 Subject: [mod] pylint all files with one profile / drop PYLINT_SEARXNG_DISABLE_OPTION In the past, some files were tested with the standard profile, others with a profile in which most of the messages were switched off ... some files were not checked at all. - ``PYLINT_SEARXNG_DISABLE_OPTION`` has been abolished - the distinction ``# lint: pylint`` is no longer necessary - the pylint tasks have been reduced from three to two 1. ./searx/engines -> lint engines with additional builtins 2. ./searx ./searxng_extra ./tests -> lint all other python files Signed-off-by: Markus Heiser --- searx/engines/presearch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'searx/engines/presearch.py') diff --git a/searx/engines/presearch.py b/searx/engines/presearch.py index 88fa59f0e..1af32ac85 100644 --- a/searx/engines/presearch.py +++ b/searx/engines/presearch.py @@ -120,8 +120,7 @@ def _get_request_id(query, params): l = locales.get_locale(params['searxng_locale']) # Presearch narrows down the search by region. In SearXNG when the user - # does not set a region (e.g. 'en-CA' / canada) we cannot hand over a - # region. + # does not set a region (e.g. 'en-CA' / canada) we cannot hand over a region. # We could possibly use searx.locales.get_official_locales to determine # in which regions this language is an official one, but then we still -- cgit v1.2.3