[test.pyright] suppress warnings about intentional monkey patching

The warnings:

- "logger" is not defined'
- "supported_languages" is not defined'
- "language_aliases" is not defined'

are very verbose and superfluous, since these messages are related to
intentional monkey patching.

[1] https://github.com/searxng/searxng/pull/783#issuecomment-1019818178

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2022-01-25 12:51:12 +01:00
parent 81453a0eba
commit 73a6da4dd9

8
manage
View file

@ -696,11 +696,15 @@ test.pyright() {
node.env.devtools node.env.devtools
# We run Pyright in the virtual environment because Pyright # We run Pyright in the virtual environment because Pyright
# executes "python" to determine the Python version. # 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 $? dump_return $?
} }
test.black() { test.black() {
build_msg TEST "[black] \$BLACK_TARGETS" build_msg TEST "[black] \$BLACK_TARGETS"
pyenv.cmd black --check --diff "${BLACK_OPTIONS[@]}" "${BLACK_TARGETS[@]}" pyenv.cmd black --check --diff "${BLACK_OPTIONS[@]}" "${BLACK_TARGETS[@]}"