Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[test.pyright] suppress warnings about intentional monkey patching

Markus Heiser73a6da4dd9ab
diff --git a/manage b/manage
index 6cc98c1be..678f64017 100755
--- a/manage
+++ b/manage
@@ -696,11 +696,15 @@ test.pyright() {
node.env.devtools
# We run Pyright in the virtual environment because Pyright
# executes "python" to determine the Python version.
- pyenv.cmd npx --no-install pyright -p pyrightconfig-ci.json
+ build_msg TEST "[pyright] suppress warnings related to intentional monkey patching"
+ pyenv.cmd npx --no-install pyright -p pyrightconfig-ci.json \
+ | grep -v ".py$" \
+ | grep -v '/engines/.*.py.* - warning: "logger" is not defined'\
+ | grep -v '/engines/.*.py.* - warning: "supported_languages" is not defined' \
+ | grep -v '/engines/.*.py.* - warning: "language_aliases" is not defined'
dump_return $?
}
-
test.black() {
build_msg TEST "[black] \$BLACK_TARGETS"
pyenv.cmd black --check --diff "${BLACK_OPTIONS[@]}" "${BLACK_TARGETS[@]}"