searxng/searx/engines
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
..
9gag.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
1337x.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
__builtins__.pyi [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
__init__.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
ahmia.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
annas_archive.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
apkmirror.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
apple_app_store.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
apple_maps.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
archlinux.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
artic.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
arxiv.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
ask.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
bandcamp.py [mod] pylint all files with one profile / drop PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
base.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
bilibili.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
bing.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
bing_images.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
bing_news.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
bing_videos.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
bpb.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
brave.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
bt4g.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
btdigg.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
ccc_media.py [feat] media.ccc.de: implement module with pagination and iframe 2024-04-27 08:55:26 +02:00
chefkoch.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
command.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
core.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
cppreference.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
crossref.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
currency_convert.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
dailymotion.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
deepl.py [refactor] translation engines: add translate category 2024-04-26 07:33:28 +02:00
deezer.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
demo_offline.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
demo_online.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
destatis.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
deviantart.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
dictzone.py [refactor] translation engines: add translate category 2024-04-26 07:33:28 +02:00
digbt.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
docker_hub.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
doku.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
duckduckgo.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
duckduckgo_definitions.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
duckduckgo_extra.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
duckduckgo_weather.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
duden.py [mod] pylint all files with one profile / drop PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
dummy-offline.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
dummy.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
ebay.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
elasticsearch.py [doc] rearranges Settings & Engines docs for better readability 2023-07-01 22:45:19 +02:00
emojipedia.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
fdroid.py [enh] add more categories 2022-01-05 11:00:11 +01:00
flickr.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
flickr_noapi.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
freesound.py [black] upgrade black 22.12.0 --> 24.2.0 2024-03-09 08:15:50 +01:00
frinkiac.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
fyyd.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
genius.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
gentoo.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
github.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
goodreads.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
google.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
google_images.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
google_news.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
google_play.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
google_scholar.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
google_videos.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
hackernews.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
imdb.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
imgur.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
ina.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
internet_archive_scholar.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
invidious.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
jisho.py [format.python] based on bugfix in 9ed626130 2022-05-07 18:23:10 +02:00
json_engine.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
kickass.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
lemmy.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
lib_rs.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
libretranslate.py [feat] engine: implementation of LibreTranslate 2024-04-26 07:33:28 +02:00
lingva.py [refactor] translation engines: add translate category 2024-04-26 07:33:28 +02:00
livespace.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
loc.py [mod] library of congress: fix engine 2023-09-11 19:42:31 +02:00
mastodon.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
material_icons.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
mediathekviewweb.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
mediawiki.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
meilisearch.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
metacpan.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
mixcloud.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
mongodb.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
moviepilot.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
mozhi.py [refactor] translation engines: add translate category 2024-04-26 07:33:28 +02:00
mrs.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
mullvad_leta.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
mwmbl.py [mod] engine 'mwmbl: Update API URL 2024-04-10 06:51:28 +02:00
mysql_server.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
npm.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
nyaa.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
odysee.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
open_meteo.py [feat] engine: implementation of Open Meteo 2024-04-07 19:02:53 +02:00
opensemantic.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
openstreetmap.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
openverse.py [fix] ccengine engine - avoid unwanted redirects 2022-01-07 14:14:31 +01:00
pdbe.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
peertube.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
photon.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
pinterest.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
piped.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
piratebay.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
pixiv.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
pkg_go_dev.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
podcastindex.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
postgresql.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
presearch.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
pubmed.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
pypi.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
qwant.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
radio_browser.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
recoll.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
reddit.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
redis_server.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
rottentomatoes.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
rumble.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
scanr_structures.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
searchcode_code.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
searx_engine.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
seekr.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
semantic_scholar.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
sepiasearch.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
seznam.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
sjp.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
solidtorrents.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
solr.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
soundcloud.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
spotify.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
springer.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
sqlite.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
stackexchange.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
startpage.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
stract.py Add user-agent to stract requests 2024-03-22 13:40:46 +01:00
svgrepo.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
tagesschau.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
tineye.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
tokyotoshokan.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
tootfinder.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
torznab.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
translated.py [refactor] translation engines: add translate category 2024-04-26 07:33:28 +02:00
unsplash.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
vimeo.py [mod] templates: rename field for <iframe> URL to iframe_src 2022-02-18 19:00:49 +01:00
voidlinux.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
wallhaven.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
wikicommons.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
wikidata.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
wikipedia.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
wolframalpha_api.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
wolframalpha_noapi.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
wordnik.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
wttr.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
www1x.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
xpath.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
yacy.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
yahoo.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
yahoo_news.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00
yandex_music.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
yep.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
youtube_api.py [fix] engine: youtube_api - ignore channels / prevent exceptions 2024-04-13 08:41:00 +02:00
youtube_noapi.py [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00
yummly.py [fix] add missing localizable (gettext) messages to searxng.msg 2024-04-26 07:34:32 +02:00
zlibrary.py [mod] activate pyright checks (in CI) 2024-04-27 18:31:52 +02:00