summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2025-10-17 15:29:15 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2025-10-17 15:42:22 +0200
commit3e7e404fda9277dd8fcac4d8a120f25412033f1d (patch)
treed0075d355aa0146cf9c41e35d50a1f298f635d9d
parent602a73df9aafe4d99a155a27f2394850b147e8ba (diff)
[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
-rw-r--r--.pylintrc2
-rwxr-xr-xutils/lib_sxng_test.sh2
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