summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-03-11 07:45:08 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-03-11 14:55:38 +0100
commit8205f170ff983e5240d32dc17d7fdb526ebe5fe7 (patch)
tree536acda827bcdd1a6668714855e6f6c3ba6b68d4 /utils
parent707d6270c80426b54aeaa0ac0acd80ded45df533 (diff)
downloadsearxng-8205f170ff983e5240d32dc17d7fdb526ebe5fe7.tar.gz
searxng-8205f170ff983e5240d32dc17d7fdb526ebe5fe7.zip
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils')
-rwxr-xr-x[-rw-r--r--]utils/lib_sxng_test.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/utils/lib_sxng_test.sh b/utils/lib_sxng_test.sh
index 41a20d86f..1bba9aa4c 100644..100755
--- a/utils/lib_sxng_test.sh
+++ b/utils/lib_sxng_test.sh
@@ -1,3 +1,8 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+[[ -z "${PYLINT_OPTIONS}" ]] && PYLINT_OPTIONS="-j 0 --rcfile .pylintrc"
+
test.help(){
cat <<EOF
test.:
@@ -22,20 +27,19 @@ test.yamllint() {
test.pylint() {
# shellcheck disable=SC2086
( set -e
- build_msg TEST "[pylint] \$PYLINT_FILES"
pyenv.activate
- python ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
- --additional-builtins="${PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES}" \
+
+ build_msg TEST "[pylint] \$PYLINT_FILES"
+ pylint ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
"${PYLINT_FILES[@]}"
build_msg TEST "[pylint] searx/engines"
- python ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
- --disable="${PYLINT_SEARXNG_DISABLE_OPTION}" \
- --additional-builtins="${PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES}" \
+ pylint ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
+ --additional-builtins="traits,supported_languages,language_aliases,logger,categories" \
searx/engines
build_msg TEST "[pylint] searx tests"
- python ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
+ pylint ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
--disable="${PYLINT_SEARXNG_DISABLE_OPTION}" \
--ignore=searx/engines \
searx tests