diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-25 12:51:12 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-25 23:26:53 +0100 |
commit | 73a6da4dd9ab95555969d42aa64bbc1c78bb0a71 (patch) | |
tree | e55cc26cfaeabb62ef6a0efed59991dbb8211eb4 /manage | |
parent | 81453a0ebab2b4b041828efc3653576f909d2768 (diff) | |
download | searxng-73a6da4dd9ab95555969d42aa64bbc1c78bb0a71.tar.gz searxng-73a6da4dd9ab95555969d42aa64bbc1c78bb0a71.zip |
[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>
Diffstat (limited to 'manage')
-rwxr-xr-x | manage | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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[@]}" |