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/botdetection/__init__.py | 1 - searx/botdetection/_helpers.py | 1 - searx/botdetection/config.py | 1 - searx/botdetection/http_accept.py | 1 - searx/botdetection/http_accept_encoding.py | 1 - searx/botdetection/http_accept_language.py | 1 - searx/botdetection/http_connection.py | 1 - searx/botdetection/http_user_agent.py | 1 - searx/botdetection/ip_limit.py | 1 - searx/botdetection/ip_lists.py | 1 - searx/botdetection/link_token.py | 1 - 11 files changed, 11 deletions(-) (limited to 'searx/botdetection') diff --git a/searx/botdetection/__init__.py b/searx/botdetection/__init__.py index d5716bcc8..51f437cf0 100644 --- a/searx/botdetection/__init__.py +++ b/searx/botdetection/__init__.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """.. _botdetection src: Implementations used for bot detection. diff --git a/searx/botdetection/_helpers.py b/searx/botdetection/_helpers.py index 365067c24..5387fe5cc 100644 --- a/searx/botdetection/_helpers.py +++ b/searx/botdetection/_helpers.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint # pylint: disable=missing-module-docstring, invalid-name from __future__ import annotations diff --git a/searx/botdetection/config.py b/searx/botdetection/config.py index b705f34d2..d7e3426cf 100644 --- a/searx/botdetection/config.py +++ b/searx/botdetection/config.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """Configuration class :py:class:`Config` with deep-update, schema validation and deprecated names. diff --git a/searx/botdetection/http_accept.py b/searx/botdetection/http_accept.py index b1f524593..911309ebe 100644 --- a/searx/botdetection/http_accept.py +++ b/searx/botdetection/http_accept.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """ Method ``http_accept`` ---------------------- diff --git a/searx/botdetection/http_accept_encoding.py b/searx/botdetection/http_accept_encoding.py index e0c03cc73..4f9e28858 100644 --- a/searx/botdetection/http_accept_encoding.py +++ b/searx/botdetection/http_accept_encoding.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """ Method ``http_accept_encoding`` ------------------------------- diff --git a/searx/botdetection/http_accept_language.py b/searx/botdetection/http_accept_language.py index aaef81cc4..e351d03cb 100644 --- a/searx/botdetection/http_accept_language.py +++ b/searx/botdetection/http_accept_language.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """ Method ``http_accept_language`` ------------------------------- diff --git a/searx/botdetection/http_connection.py b/searx/botdetection/http_connection.py index a32877158..c720b55e6 100644 --- a/searx/botdetection/http_connection.py +++ b/searx/botdetection/http_connection.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """ Method ``http_connection`` -------------------------- diff --git a/searx/botdetection/http_user_agent.py b/searx/botdetection/http_user_agent.py index 9e45c7f9d..db6356449 100644 --- a/searx/botdetection/http_user_agent.py +++ b/searx/botdetection/http_user_agent.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """ Method ``http_user_agent`` -------------------------- diff --git a/searx/botdetection/ip_limit.py b/searx/botdetection/ip_limit.py index 387e580ee..757314f0e 100644 --- a/searx/botdetection/ip_limit.py +++ b/searx/botdetection/ip_limit.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """.. _botdetection.ip_limit: Method ``ip_limit`` diff --git a/searx/botdetection/ip_lists.py b/searx/botdetection/ip_lists.py index c94f2a6e8..2ad1c62d0 100644 --- a/searx/botdetection/ip_lists.py +++ b/searx/botdetection/ip_lists.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """.. _botdetection.ip_lists: Method ``ip_lists`` diff --git a/searx/botdetection/link_token.py b/searx/botdetection/link_token.py index dcfee33d9..7a484d6d5 100644 --- a/searx/botdetection/link_token.py +++ b/searx/botdetection/link_token.py @@ -1,5 +1,4 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -# lint: pylint """ Method ``link_token`` --------------------- -- cgit v1.2.3