From 81cbe0befe993b57b7daee2643e6016586262436 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 26 Sep 2025 12:35:57 +0200 Subject: [PATCH] [upd] pypi: Bump black from 24.3.0 to 25.9.0 (#5251) In 25.1.0 [2] an old bug has been fixed: "Docstring formatting does not apply to module docstrings" [3]. [1] https://github.com/psf/black/blob/main/CHANGES.md#2590 [2] https://github.com/psf/black/blob/main/CHANGES.md#2510 [3] https://github.com/psf/black/issues/4094 Signed-off-by: Markus Heiser --- requirements-dev.txt | 2 +- searx/autocomplete.py | 4 +--- searx/data/__init__.py | 2 +- searx/engines/1337x.py | 4 +--- searx/engines/ahmia.py | 2 +- searx/engines/apkmirror.py | 3 +-- searx/engines/apple_app_store.py | 4 +--- searx/engines/base.py | 4 +--- searx/engines/bing_images.py | 3 +-- searx/engines/bing_videos.py | 3 +-- searx/engines/btdigg.py | 2 +- searx/engines/chefkoch.py | 3 +-- searx/engines/cppreference.py | 3 +-- searx/engines/deezer.py | 2 +- searx/engines/destatis.py | 3 +-- searx/engines/deviantart.py | 4 +--- searx/engines/dictzone.py | 2 +- searx/engines/digbt.py | 2 +- searx/engines/docker_hub.py | 4 +--- searx/engines/doku.py | 2 +- searx/engines/duden.py | 4 +--- searx/engines/dummy-offline.py | 4 +--- searx/engines/dummy.py | 4 +--- searx/engines/ebay.py | 2 +- searx/engines/fdroid.py | 2 +- searx/engines/flickr.py | 4 ++-- searx/engines/flickr_noapi.py | 4 +--- searx/engines/frinkiac.py | 2 +- searx/engines/fyyd.py | 3 +-- searx/engines/genius.py | 4 +--- searx/engines/github.py | 4 +--- searx/engines/goodreads.py | 3 +-- searx/engines/google_play.py | 3 +-- searx/engines/hackernews.py | 3 +-- searx/engines/imgur.py | 3 +-- searx/engines/ina.py | 2 +- searx/engines/mediathekviewweb.py | 4 +--- searx/engines/metacpan.py | 3 +-- searx/engines/mixcloud.py | 4 +--- searx/engines/npm.py | 4 +--- searx/engines/nyaa.py | 4 +--- searx/engines/opensemantic.py | 4 +--- searx/engines/openstreetmap.py | 4 +--- searx/engines/openverse.py | 2 +- searx/engines/pdbe.py | 2 +- searx/engines/photon.py | 2 +- searx/engines/piratebay.py | 2 +- searx/engines/podcastindex.py | 3 +-- searx/engines/pypi.py | 4 +--- searx/engines/reddit.py | 4 +--- searx/engines/rottentomatoes.py | 3 +-- searx/engines/rumble.py | 4 +--- searx/engines/scanr_structures.py | 2 +- searx/engines/searx_engine.py | 2 +- searx/engines/senscritique.py | 3 +-- searx/engines/seznam.py | 4 +--- searx/engines/solidtorrents.py | 4 +--- searx/engines/spotify.py | 4 +--- searx/engines/svgrepo.py | 3 +-- searx/engines/tokyotoshokan.py | 4 +--- searx/engines/tootfinder.py | 3 +-- searx/engines/translated.py | 4 +--- searx/engines/unsplash.py | 4 +--- searx/engines/vimeo.py | 2 +- searx/engines/wikicommons.py | 4 +--- searx/engines/wolframalpha_api.py | 4 +--- searx/engines/wolframalpha_noapi.py | 2 +- searx/engines/www1x.py | 4 +--- searx/engines/yep.py | 3 +-- searx/engines/youtube_api.py | 2 +- searx/engines/youtube_noapi.py | 4 +--- searx/exceptions.py | 3 +-- searx/network/raise_for_httperror.py | 4 +--- searx/preferences.py | 3 +-- searx/searxng.msg | 3 +-- searx/settings_defaults.py | 4 +--- searxng_extra/update/update_engine_traits.py | 14 +++++++------- 77 files changed, 84 insertions(+), 171 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index bb8f8e1af..736518819 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,7 @@ mock==5.2.0 nose2[coverage_plugin]==0.15.1 cov-core==1.15.0 -black==24.3.0 +black==25.9.0 pylint==3.3.8 splinter==0.21.0 selenium==4.35.0 diff --git a/searx/autocomplete.py b/searx/autocomplete.py index f887e5c56..fabd8be24 100644 --- a/searx/autocomplete.py +++ b/searx/autocomplete.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""This module implements functions needed for the autocompleter. - -""" +"""This module implements functions needed for the autocompleter.""" # pylint: disable=use-dict-literal import json diff --git a/searx/data/__init__.py b/searx/data/__init__.py index 3f9a42e7d..fc3031680 100644 --- a/searx/data/__init__.py +++ b/searx/data/__init__.py @@ -1,7 +1,7 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """This module holds the *data* created by:: - make data.all +make data.all """ # pylint: disable=invalid-name diff --git a/searx/engines/1337x.py b/searx/engines/1337x.py index f9a0d0412..d6f515dc4 100644 --- a/searx/engines/1337x.py +++ b/searx/engines/1337x.py @@ -1,8 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # pylint: disable=invalid-name -"""1337x - -""" +"""1337x""" from urllib.parse import quote, urljoin from lxml import html diff --git a/searx/engines/ahmia.py b/searx/engines/ahmia.py index 7c8bb5868..589f38e57 100644 --- a/searx/engines/ahmia.py +++ b/searx/engines/ahmia.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Ahmia (Onions) +Ahmia (Onions) """ from urllib.parse import urlencode, urlparse, parse_qs diff --git a/searx/engines/apkmirror.py b/searx/engines/apkmirror.py index d9f291c4f..4dc5be8f0 100644 --- a/searx/engines/apkmirror.py +++ b/searx/engines/apkmirror.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""APKMirror -""" +"""APKMirror""" # pylint: disable=invalid-name diff --git a/searx/engines/apple_app_store.py b/searx/engines/apple_app_store.py index 7817848ff..b69d11445 100644 --- a/searx/engines/apple_app_store.py +++ b/searx/engines/apple_app_store.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Apple App Store - -""" +"""Apple App Store""" from json import loads from urllib.parse import urlencode diff --git a/searx/engines/base.py b/searx/engines/base.py index 328a1fc07..900f46a9b 100755 --- a/searx/engines/base.py +++ b/searx/engines/base.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""BASE (Scholar publications) - -""" +"""BASE (Scholar publications)""" from datetime import datetime import re diff --git a/searx/engines/bing_images.py b/searx/engines/bing_images.py index 7d35e1046..d56129707 100644 --- a/searx/engines/bing_images.py +++ b/searx/engines/bing_images.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Bing-Images: description see :py:obj:`searx.engines.bing`. -""" +"""Bing-Images: description see :py:obj:`searx.engines.bing`.""" # pylint: disable=invalid-name import json from urllib.parse import urlencode diff --git a/searx/engines/bing_videos.py b/searx/engines/bing_videos.py index 288805d3d..cfa129791 100644 --- a/searx/engines/bing_videos.py +++ b/searx/engines/bing_videos.py @@ -1,7 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # pylint: disable=invalid-name -"""Bing-Videos: description see :py:obj:`searx.engines.bing`. -""" +"""Bing-Videos: description see :py:obj:`searx.engines.bing`.""" import json from urllib.parse import urlencode diff --git a/searx/engines/btdigg.py b/searx/engines/btdigg.py index 5743f4142..c5254fcf4 100644 --- a/searx/engines/btdigg.py +++ b/searx/engines/btdigg.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - BTDigg (Videos, Music, Files) +BTDigg (Videos, Music, Files) """ from urllib.parse import quote, urljoin diff --git a/searx/engines/chefkoch.py b/searx/engines/chefkoch.py index 504b45152..8e4cfa454 100644 --- a/searx/engines/chefkoch.py +++ b/searx/engines/chefkoch.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Chefkoch is a German database of recipes. -""" +"""Chefkoch is a German database of recipes.""" from datetime import datetime from urllib.parse import urlencode diff --git a/searx/engines/cppreference.py b/searx/engines/cppreference.py index 5ffbf6e59..5d021fe66 100644 --- a/searx/engines/cppreference.py +++ b/searx/engines/cppreference.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Cppreference -""" +"""Cppreference""" from lxml import html from searx.utils import eval_xpath diff --git a/searx/engines/deezer.py b/searx/engines/deezer.py index f4a4783ea..1314f1533 100644 --- a/searx/engines/deezer.py +++ b/searx/engines/deezer.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Deezer (Music) +Deezer (Music) """ from json import loads diff --git a/searx/engines/destatis.py b/searx/engines/destatis.py index 9e5355c6f..e9ac5deae 100644 --- a/searx/engines/destatis.py +++ b/searx/engines/destatis.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""DeStatis -""" +"""DeStatis""" from urllib.parse import urlencode from lxml import html diff --git a/searx/engines/deviantart.py b/searx/engines/deviantart.py index b19813a35..cf7692890 100644 --- a/searx/engines/deviantart.py +++ b/searx/engines/deviantart.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Deviantart (Images) - -""" +"""Deviantart (Images)""" import urllib.parse from lxml import html diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py index d393eae92..aa6c4806c 100644 --- a/searx/engines/dictzone.py +++ b/searx/engines/dictzone.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Dictzone +Dictzone """ import urllib.parse diff --git a/searx/engines/digbt.py b/searx/engines/digbt.py index fd3d1fb16..cbe2e170b 100644 --- a/searx/engines/digbt.py +++ b/searx/engines/digbt.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - DigBT (Videos, Music, Files) +DigBT (Videos, Music, Files) """ from urllib.parse import urljoin diff --git a/searx/engines/docker_hub.py b/searx/engines/docker_hub.py index 021c05827..dc1d1ddfa 100644 --- a/searx/engines/docker_hub.py +++ b/searx/engines/docker_hub.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Docker Hub (IT) - -""" +"""Docker Hub (IT)""" # pylint: disable=use-dict-literal from urllib.parse import urlencode diff --git a/searx/engines/doku.py b/searx/engines/doku.py index 43e6a4a9a..d4a36f7af 100644 --- a/searx/engines/doku.py +++ b/searx/engines/doku.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Doku Wiki +Doku Wiki """ from urllib.parse import urlencode diff --git a/searx/engines/duden.py b/searx/engines/duden.py index 94dff71ef..c2e758d6f 100644 --- a/searx/engines/duden.py +++ b/searx/engines/duden.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Duden - -""" +"""Duden""" import re from urllib.parse import quote, urljoin diff --git a/searx/engines/dummy-offline.py b/searx/engines/dummy-offline.py index 545c947ff..4e9d8b202 100644 --- a/searx/engines/dummy-offline.py +++ b/searx/engines/dummy-offline.py @@ -1,8 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # pylint: disable=invalid-name -"""Dummy Offline - -""" +"""Dummy Offline""" # about diff --git a/searx/engines/dummy.py b/searx/engines/dummy.py index 2d4301b42..e10f90436 100644 --- a/searx/engines/dummy.py +++ b/searx/engines/dummy.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Dummy - -""" +"""Dummy""" # about about = { diff --git a/searx/engines/ebay.py b/searx/engines/ebay.py index f1d09d878..365c5b5cc 100644 --- a/searx/engines/ebay.py +++ b/searx/engines/ebay.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Ebay (Videos, Music, Files) +Ebay (Videos, Music, Files) """ from urllib.parse import quote diff --git a/searx/engines/fdroid.py b/searx/engines/fdroid.py index 6a6bf63cb..144a47032 100644 --- a/searx/engines/fdroid.py +++ b/searx/engines/fdroid.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - F-Droid (a repository of FOSS applications for Android) +F-Droid (a repository of FOSS applications for Android) """ from urllib.parse import urlencode diff --git a/searx/engines/flickr.py b/searx/engines/flickr.py index 89c3b8cfd..3edfd9997 100644 --- a/searx/engines/flickr.py +++ b/searx/engines/flickr.py @@ -1,8 +1,8 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Flickr (Images) +Flickr (Images) - More info on api-key : https://www.flickr.com/services/apps/create/ +More info on api-key : https://www.flickr.com/services/apps/create/ """ from json import loads diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py index e98fd0b1a..e7b8ffaf4 100644 --- a/searx/engines/flickr_noapi.py +++ b/searx/engines/flickr_noapi.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Flickr (Images) - -""" +"""Flickr (Images)""" import json from time import time diff --git a/searx/engines/frinkiac.py b/searx/engines/frinkiac.py index 95a1366de..68894ea31 100644 --- a/searx/engines/frinkiac.py +++ b/searx/engines/frinkiac.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Frinkiac (Images) +Frinkiac (Images) """ from json import loads diff --git a/searx/engines/fyyd.py b/searx/engines/fyyd.py index 3810e5e81..782fd0208 100644 --- a/searx/engines/fyyd.py +++ b/searx/engines/fyyd.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Fyyd (podcasts) -""" +"""Fyyd (podcasts)""" from datetime import datetime from urllib.parse import urlencode diff --git a/searx/engines/genius.py b/searx/engines/genius.py index 24ab91386..0ef82c541 100644 --- a/searx/engines/genius.py +++ b/searx/engines/genius.py @@ -1,8 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # pylint: disable=invalid-name -"""Genius - -""" +"""Genius""" from urllib.parse import urlencode from datetime import datetime diff --git a/searx/engines/github.py b/searx/engines/github.py index 714cb5ca3..0016ea1d8 100644 --- a/searx/engines/github.py +++ b/searx/engines/github.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Github (IT) - -""" +"""Github (IT)""" from urllib.parse import urlencode from dateutil import parser diff --git a/searx/engines/goodreads.py b/searx/engines/goodreads.py index c4b7bb5b1..c1d19eece 100644 --- a/searx/engines/goodreads.py +++ b/searx/engines/goodreads.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Goodreads (books) -""" +"""Goodreads (books)""" from urllib.parse import urlencode diff --git a/searx/engines/google_play.py b/searx/engines/google_play.py index 9853a4911..8135161a1 100644 --- a/searx/engines/google_play.py +++ b/searx/engines/google_play.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Google Play Apps & Google Play Movies -""" +"""Google Play Apps & Google Play Movies""" from urllib.parse import urlencode from lxml import html diff --git a/searx/engines/hackernews.py b/searx/engines/hackernews.py index 46c8cae8d..3b0dd2d87 100644 --- a/searx/engines/hackernews.py +++ b/searx/engines/hackernews.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Hackernews -""" +"""Hackernews""" from datetime import datetime from urllib.parse import urlencode diff --git a/searx/engines/imgur.py b/searx/engines/imgur.py index 7a4793c58..ff7bdffdb 100644 --- a/searx/engines/imgur.py +++ b/searx/engines/imgur.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Imgur (images) -""" +"""Imgur (images)""" from urllib.parse import urlencode from lxml import html diff --git a/searx/engines/ina.py b/searx/engines/ina.py index e5fba20bb..45f871941 100644 --- a/searx/engines/ina.py +++ b/searx/engines/ina.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - INA (Videos) +INA (Videos) """ from html import unescape diff --git a/searx/engines/mediathekviewweb.py b/searx/engines/mediathekviewweb.py index 6d2331a3d..8baa20bdb 100644 --- a/searx/engines/mediathekviewweb.py +++ b/searx/engines/mediathekviewweb.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""MediathekViewWeb (API) - -""" +"""MediathekViewWeb (API)""" import datetime from json import loads, dumps diff --git a/searx/engines/metacpan.py b/searx/engines/metacpan.py index 32bc55b89..a0f9c6f7a 100644 --- a/searx/engines/metacpan.py +++ b/searx/engines/metacpan.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""metacpan -""" +"""metacpan""" from urllib.parse import urlunparse diff --git a/searx/engines/mixcloud.py b/searx/engines/mixcloud.py index 006d59578..af9ad1890 100644 --- a/searx/engines/mixcloud.py +++ b/searx/engines/mixcloud.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Mixcloud (Music) - -""" +"""Mixcloud (Music)""" from urllib.parse import urlencode from dateutil import parser diff --git a/searx/engines/npm.py b/searx/engines/npm.py index ac21a62b8..c2d4284d1 100644 --- a/searx/engines/npm.py +++ b/searx/engines/npm.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""npms.io - -""" +"""npms.io""" from urllib.parse import urlencode from dateutil import parser diff --git a/searx/engines/nyaa.py b/searx/engines/nyaa.py index f3862f503..47c172aae 100644 --- a/searx/engines/nyaa.py +++ b/searx/engines/nyaa.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Nyaa.si (Anime Bittorrent tracker) - -""" +"""Nyaa.si (Anime Bittorrent tracker)""" from urllib.parse import urlencode diff --git a/searx/engines/opensemantic.py b/searx/engines/opensemantic.py index 03b01df43..c5785215f 100644 --- a/searx/engines/opensemantic.py +++ b/searx/engines/opensemantic.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Open Semantic Search - -""" +"""Open Semantic Search""" from json import loads from urllib.parse import quote diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.py index 64ed6809b..9a77992db 100644 --- a/searx/engines/openstreetmap.py +++ b/searx/engines/openstreetmap.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""OpenStreetMap (Map) - -""" +"""OpenStreetMap (Map)""" import re import urllib.parse diff --git a/searx/engines/openverse.py b/searx/engines/openverse.py index dc1ee1ac4..6d66d762d 100644 --- a/searx/engines/openverse.py +++ b/searx/engines/openverse.py @@ -1,7 +1,7 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Openverse (formerly known as: Creative Commons search engine) [Images] +Openverse (formerly known as: Creative Commons search engine) [Images] """ diff --git a/searx/engines/pdbe.py b/searx/engines/pdbe.py index ae76a7290..6dcb56169 100644 --- a/searx/engines/pdbe.py +++ b/searx/engines/pdbe.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - PDBe (Protein Data Bank in Europe) +PDBe (Protein Data Bank in Europe) """ from json import loads diff --git a/searx/engines/photon.py b/searx/engines/photon.py index 07fcfdf31..ee45af7c6 100644 --- a/searx/engines/photon.py +++ b/searx/engines/photon.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Photon (Map) +Photon (Map) """ from json import loads diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py index e1f3f611a..2db783356 100644 --- a/searx/engines/piratebay.py +++ b/searx/engines/piratebay.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Piratebay (Videos, Music, Files) +Piratebay (Videos, Music, Files) """ from json import loads diff --git a/searx/engines/podcastindex.py b/searx/engines/podcastindex.py index 9e04a6f78..e9a927838 100644 --- a/searx/engines/podcastindex.py +++ b/searx/engines/podcastindex.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Podcast Index -""" +"""Podcast Index""" from urllib.parse import quote_plus from datetime import datetime diff --git a/searx/engines/pypi.py b/searx/engines/pypi.py index 7ebb254f3..f2069126d 100644 --- a/searx/engines/pypi.py +++ b/searx/engines/pypi.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""pypi.org - -""" +"""pypi.org""" from urllib.parse import urlencode from dateutil import parser diff --git a/searx/engines/reddit.py b/searx/engines/reddit.py index 263b70b73..1a44594ed 100644 --- a/searx/engines/reddit.py +++ b/searx/engines/reddit.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Reddit - -""" +"""Reddit""" import json from datetime import datetime diff --git a/searx/engines/rottentomatoes.py b/searx/engines/rottentomatoes.py index 131abfaa3..d07504b50 100644 --- a/searx/engines/rottentomatoes.py +++ b/searx/engines/rottentomatoes.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""RottenTomatoes (movies) -""" +"""RottenTomatoes (movies)""" from urllib.parse import quote_plus from lxml import html diff --git a/searx/engines/rumble.py b/searx/engines/rumble.py index 5267e04c0..8f84aa269 100644 --- a/searx/engines/rumble.py +++ b/searx/engines/rumble.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Rumble (Videos) - -""" +"""Rumble (Videos)""" from datetime import datetime diff --git a/searx/engines/scanr_structures.py b/searx/engines/scanr_structures.py index 7a5415e54..a3e27f58c 100644 --- a/searx/engines/scanr_structures.py +++ b/searx/engines/scanr_structures.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - ScanR Structures (Science) +ScanR Structures (Science) """ from json import loads, dumps diff --git a/searx/engines/searx_engine.py b/searx/engines/searx_engine.py index 156001997..1a67743f4 100644 --- a/searx/engines/searx_engine.py +++ b/searx/engines/searx_engine.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Searx (all) +Searx (all) """ from json import loads diff --git a/searx/engines/senscritique.py b/searx/engines/senscritique.py index cf1765624..f4dd972ea 100644 --- a/searx/engines/senscritique.py +++ b/searx/engines/senscritique.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""SensCritique (movies) -""" +"""SensCritique (movies)""" import typing as t diff --git a/searx/engines/seznam.py b/searx/engines/seznam.py index d480956bd..c7e0fe75f 100644 --- a/searx/engines/seznam.py +++ b/searx/engines/seznam.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Seznam - -""" +"""Seznam""" from urllib.parse import urlencode from lxml import html diff --git a/searx/engines/solidtorrents.py b/searx/engines/solidtorrents.py index c2f7e435e..9a3608a87 100644 --- a/searx/engines/solidtorrents.py +++ b/searx/engines/solidtorrents.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""SolidTorrents - -""" +"""SolidTorrents""" from datetime import datetime from urllib.parse import urlencode diff --git a/searx/engines/spotify.py b/searx/engines/spotify.py index 3b86328b7..67d570bd2 100644 --- a/searx/engines/spotify.py +++ b/searx/engines/spotify.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Spotify (Music) - -""" +"""Spotify (Music)""" from json import loads from urllib.parse import urlencode diff --git a/searx/engines/svgrepo.py b/searx/engines/svgrepo.py index 0b821ed64..10ee92d39 100644 --- a/searx/engines/svgrepo.py +++ b/searx/engines/svgrepo.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Svgrepo (icons) -""" +"""Svgrepo (icons)""" from lxml import html from searx.utils import extract_text, eval_xpath, eval_xpath_list diff --git a/searx/engines/tokyotoshokan.py b/searx/engines/tokyotoshokan.py index ad0be1985..b53d78eb3 100644 --- a/searx/engines/tokyotoshokan.py +++ b/searx/engines/tokyotoshokan.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Tokyo Toshokan (A BitTorrent Library for Japanese Media) - -""" +"""Tokyo Toshokan (A BitTorrent Library for Japanese Media)""" import re from datetime import datetime diff --git a/searx/engines/tootfinder.py b/searx/engines/tootfinder.py index 806a7d688..bbfb7e4a0 100644 --- a/searx/engines/tootfinder.py +++ b/searx/engines/tootfinder.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Tootfinder (social media) -""" +"""Tootfinder (social media)""" from datetime import datetime from json import loads diff --git a/searx/engines/translated.py b/searx/engines/translated.py index 08808cfd2..57f00bcff 100644 --- a/searx/engines/translated.py +++ b/searx/engines/translated.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""MyMemory Translated - -""" +"""MyMemory Translated""" import urllib.parse diff --git a/searx/engines/unsplash.py b/searx/engines/unsplash.py index cfffdd4e3..337c8a710 100644 --- a/searx/engines/unsplash.py +++ b/searx/engines/unsplash.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Unsplash - -""" +"""Unsplash""" from urllib.parse import urlencode, urlparse, urlunparse, parse_qsl from json import loads diff --git a/searx/engines/vimeo.py b/searx/engines/vimeo.py index d46468d8d..6d1420679 100644 --- a/searx/engines/vimeo.py +++ b/searx/engines/vimeo.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Wikipedia (Web +Wikipedia (Web """ from urllib.parse import urlencode diff --git a/searx/engines/wikicommons.py b/searx/engines/wikicommons.py index 214881bed..718cd45d5 100644 --- a/searx/engines/wikicommons.py +++ b/searx/engines/wikicommons.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Wikimedia Commons (images) - -""" +"""Wikimedia Commons (images)""" import datetime diff --git a/searx/engines/wolframalpha_api.py b/searx/engines/wolframalpha_api.py index 60892d4d8..c3483307e 100644 --- a/searx/engines/wolframalpha_api.py +++ b/searx/engines/wolframalpha_api.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Wolfram|Alpha (Science) - -""" +"""Wolfram|Alpha (Science)""" from urllib.parse import urlencode diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py index 279d47a3d..c001b5c06 100644 --- a/searx/engines/wolframalpha_noapi.py +++ b/searx/engines/wolframalpha_noapi.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Wolfram|Alpha (Science) +Wolfram|Alpha (Science) """ diff --git a/searx/engines/www1x.py b/searx/engines/www1x.py index 0d4b6b799..9c5f01e3a 100644 --- a/searx/engines/www1x.py +++ b/searx/engines/www1x.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""1x (Images) - -""" +"""1x (Images)""" from urllib.parse import urlencode, urljoin from lxml import html, etree diff --git a/searx/engines/yep.py b/searx/engines/yep.py index a5c705533..726f62c0d 100644 --- a/searx/engines/yep.py +++ b/searx/engines/yep.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Yep (general, images, news) -""" +"""Yep (general, images, news)""" from datetime import datetime from urllib.parse import urlencode diff --git a/searx/engines/youtube_api.py b/searx/engines/youtube_api.py index 4192530b9..ebecd5432 100644 --- a/searx/engines/youtube_api.py +++ b/searx/engines/youtube_api.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """ - Youtube (Videos) +Youtube (Videos) """ from json import loads diff --git a/searx/engines/youtube_noapi.py b/searx/engines/youtube_noapi.py index c2136c3ca..51372397c 100644 --- a/searx/engines/youtube_noapi.py +++ b/searx/engines/youtube_noapi.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Youtube (Videos) - -""" +"""Youtube (Videos)""" from functools import reduce from json import loads, dumps diff --git a/searx/exceptions.py b/searx/exceptions.py index 6b150929e..226b209ca 100644 --- a/searx/exceptions.py +++ b/searx/exceptions.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Exception types raised by SearXNG modules. -""" +"""Exception types raised by SearXNG modules.""" import typing as t from lxml.etree import XPath diff --git a/searx/network/raise_for_httperror.py b/searx/network/raise_for_httperror.py index 1a9e3d0d2..d50e650e2 100644 --- a/searx/network/raise_for_httperror.py +++ b/searx/network/raise_for_httperror.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Raise exception for an HTTP response is an error. - -""" +"""Raise exception for an HTTP response is an error.""" import typing as t from searx.exceptions import ( diff --git a/searx/preferences.py b/searx/preferences.py index e6d09b14f..ffe4a5d7e 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Searx preferences implementation. -""" +"""Searx preferences implementation.""" # pylint: disable=useless-object-inheritance diff --git a/searx/searxng.msg b/searx/searxng.msg index 7401b8313..1ca29a51c 100644 --- a/searx/searxng.msg +++ b/searx/searxng.msg @@ -1,7 +1,6 @@ # -*- mode: python -*- # SPDX-License-Identifier: AGPL-3.0-or-later -"""A SearXNG message file, see :py:obj:`searx.babel` -""" +"""A SearXNG message file, see :py:obj:`searx.babel`""" import typing diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index fd7d6d8cc..dba5ffc20 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Implementation of the default settings. - -""" +"""Implementation of the default settings.""" from __future__ import annotations import typing as t diff --git a/searxng_extra/update/update_engine_traits.py b/searxng_extra/update/update_engine_traits.py index a28d4d496..e52f7456d 100755 --- a/searxng_extra/update/update_engine_traits.py +++ b/searxng_extra/update/update_engine_traits.py @@ -50,7 +50,7 @@ A list of five-digit tuples: Empty string for language tags. 3. English language name (from :py:obj:`babel.core.Locale.english_name`) 4. Unicode flag (emoji) that fits to SearXNG's internal region tag. Languages - are represented by a globe (\U0001F310) + are represented by a globe (\U0001f310) .. code:: python @@ -68,11 +68,11 @@ A list of five-digit tuples: lang2emoji = { - 'ha': '\U0001F1F3\U0001F1EA', # Hausa / Niger - 'bs': '\U0001F1E7\U0001F1E6', # Bosnian / Bosnia & Herzegovina - 'jp': '\U0001F1EF\U0001F1F5', # Japanese - 'ua': '\U0001F1FA\U0001F1E6', # Ukrainian - 'he': '\U0001F1EE\U0001F1F1', # Hebrew + 'ha': '\U0001f1f3\U0001f1ea', # Hausa / Niger + 'bs': '\U0001f1e7\U0001f1e6', # Bosnian / Bosnia & Herzegovina + 'jp': '\U0001f1ef\U0001f1f5', # Japanese + 'ua': '\U0001f1fa\U0001f1e6', # Ukrainian + 'he': '\U0001f1ee\U0001f1f1', # Hebrew } @@ -178,7 +178,7 @@ def get_unicode_flag(locale: babel.Locale): return emoji if not locale.territory: - return '\U0001F310' + return '\U0001f310' emoji = lang2emoji.get(locale.territory.lower()) if emoji: