From 3e7e404fda9277dd8fcac4d8a120f25412033f1d Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 17 Oct 2025 15:29:15 +0200 Subject: [PATCH] [fix] issues reported by Pylint 4.0 Last major update of Pylint brings some breaking changes [1], fixed in this patch. [1] https://pylint.readthedocs.io/en/latest/whatsnew/4/4.0/index.html#breaking-changes --- .pylintrc | 2 +- utils/lib_sxng_test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 4f6c72956..3da23df23 100644 --- a/.pylintrc +++ b/.pylintrc @@ -162,7 +162,7 @@ no-docstring-rgx=^_ property-classes=abc.abstractproperty # Regular expression matching correct variable names -variable-rgx=(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*)|([a-z]))$ +variable-rgx=([a-zA-Z0-9_]*)$ [FORMAT] diff --git a/utils/lib_sxng_test.sh b/utils/lib_sxng_test.sh index 368e60153..530b4f80d 100755 --- a/utils/lib_sxng_test.sh +++ b/utils/lib_sxng_test.sh @@ -42,7 +42,7 @@ test.pylint() { build_msg TEST "[pylint] ./searx ./searxng_extra ./tests" # shellcheck disable=SC2086 pylint ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \ - --ignore=searx/engines \ + --ignore-paths=searx/engines \ searx searx/searxng.msg \ searxng_extra searxng_extra/docs_prebuild \ tests