summaryrefslogtreecommitdiff
path: root/searx/botdetection
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-03-11 14:06:26 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-03-11 14:55:38 +0100
commit542f7d0d7bd1a12e1884ba4a1508b40e2514d472 (patch)
tree5256282b267e494200d02914593457854567fec4 /searx/botdetection
parent8205f170ff983e5240d32dc17d7fdb526ebe5fe7 (diff)
downloadsearxng-542f7d0d7bd1a12e1884ba4a1508b40e2514d472.tar.gz
searxng-542f7d0d7bd1a12e1884ba4a1508b40e2514d472.zip
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/botdetection')
-rw-r--r--searx/botdetection/__init__.py1
-rw-r--r--searx/botdetection/_helpers.py1
-rw-r--r--searx/botdetection/config.py1
-rw-r--r--searx/botdetection/http_accept.py1
-rw-r--r--searx/botdetection/http_accept_encoding.py1
-rw-r--r--searx/botdetection/http_accept_language.py1
-rw-r--r--searx/botdetection/http_connection.py1
-rw-r--r--searx/botdetection/http_user_agent.py1
-rw-r--r--searx/botdetection/ip_limit.py1
-rw-r--r--searx/botdetection/ip_lists.py1
-rw-r--r--searx/botdetection/link_token.py1
11 files changed, 0 insertions, 11 deletions
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``
---------------------