searxng/utils
Markus Heiser 86b4d2f2d0 [mod] activate pyright checks (in CI)
We have been using a static type checker (pyright) for a long time, but its
check was not yet a prerequisite for passing the quality gate.  It was checked
in the CI, but the error messages were only logged.

As is always the case in life, with checks that you have to do but which have no
consequences; you neglect them :-)

We didn't activate the checks back then because we (even today) have too much
monkey patching in our code (not only in the engines, httpx and others objects
are also affected).

We want to replace monkey patching with clear interfaces for a long time, the
basis for this is increased typing and we can only achieve this if we make type
checking an integral part of the quality gate.

  This PR activates the type check; in order to pass the check, a few typings
  were corrected in the code, but most type inconsistencies were deactivated via
  inline comments.

This was particularly necessary in places where the code uses properties that
stick to the objects (monkey patching).  The sticking of properties only happens
in a few places, but the access to these properties extends over the entire
code, which is why there are many `# type: ignore` markers in the code ... which
we will hopefully be able to remove again successively in the future.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-04-27 18:31:52 +02:00
..
templates Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992) 2023-11-12 16:46:34 +00:00
brand.sh [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
filtron.sh [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
get_setting.py [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
lib.sh [fix] issues reported by shellcheck v0.9.0 2024-01-09 16:31:19 +01:00
lib_go.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_nvm.sh [fix] make nvm.env exit with error when VERBOSE is unset 2023-02-11 13:18:07 +01:00
lib_redis.sh [utils/searxng.sh] implement new script to install SearXNG 2022-07-30 13:39:35 +02:00
lib_sxng_data.sh [mod] reduce memory footprint by not calling babel.Locale.parse at runtime 2024-02-20 10:43:20 +01:00
lib_sxng_node.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_sxng_static.sh [fix] issues reported by shellcheck v0.9.0 2024-01-09 16:31:19 +01:00
lib_sxng_test.sh [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
lib_sxng_themes.sh [doc] improve documentation of make targets and ./manage script 2023-08-06 19:37:12 +02:00
lib_sxng_weblate.sh [mod] CI: tag commits with leading scope/type of the modification 2024-03-09 12:17:23 +01:00
lxc-searxng.env [doc] update & fix documentation of the "SearXNG LXC suite" 2023-05-21 18:12:39 +02:00
lxc.sh [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
makefile.include [mod] replace makefile boilerplate by 'manage' script 2021-04-23 11:26:22 +02:00
makefile.lxc [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env 2020-12-26 11:43:18 +01:00
morty.sh [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
searx.sh [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
searxng.sh [fix] utils/searxng.sh uses searx.shared module which no longer exists 2024-02-20 15:18:40 +01:00
searxng_check.py [mod] pylint all files with one profile / drop PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00