diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-19 10:31:45 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-23 08:00:39 +0100 |
commit | 834277321648297522ce2dbbf46559d96ca7d991 (patch) | |
tree | 870293266e51cf0c9b397305823221a59b0a99ee /manage | |
parent | 5d9188c7e93f010f1d1d8d88d3b0791d54621b6c (diff) | |
download | searxng-834277321648297522ce2dbbf46559d96ca7d991.tar.gz searxng-834277321648297522ce2dbbf46559d96ca7d991.zip |
[mod] manage test.pyright: a commandline to run pyright tests
This patch implements the command and Makefile target::
./manage test.pyright
make test.pyright
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-x | manage | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -103,6 +103,7 @@ format.: test.: yamllint : lint YAML files (YAMLLINT_FILES) pylint : lint PYLINT_FILES, searx/engines, searx & tests + pyright : static type check of python sources black : check black code format unit : run unit tests coverage : run unit tests with coverage @@ -682,6 +683,15 @@ test.pylint() { dump_return $? } + +test.pyright() { + build_msg TEST "[pyright] static type check of python sources" + nodejs.ensure + pyenv.cmd pyright + dump_return $? +} + + test.black() { build_msg TEST "[black] \$BLACK_TARGETS" pyenv.cmd black --check --diff "${BLACK_OPTIONS[@]}" "${BLACK_TARGETS[@]}" |