diff --git a/searxng/metrics/error_recorder.py b/searxng/metrics/error_recorder.py index 9b62771a3..ac0e00b86 100644 --- a/searxng/metrics/error_recorder.py +++ b/searxng/metrics/error_recorder.py @@ -3,8 +3,12 @@ import inspect from json import JSONDecodeError from urllib.parse import urlparse from httpx import HTTPError, HTTPStatusError -from searxng.exceptions import (SearxXPathSyntaxException, SearxEngineXPathException, SearxEngineAPIException, - SearxEngineAccessDeniedException) +from searxng.exceptions import ( + SearxXPathSyntaxException, + SearxEngineXPathException, + SearxEngineAPIException, + SearxEngineAccessDeniedException +) from searxng import searxng_parent_dir from searxng.engines import engines diff --git a/searxng/plugins/__init__.py b/searxng/plugins/__init__.py index ca593aab3..462f6ba9f 100644 --- a/searxng/plugins/__init__.py +++ b/searxng/plugins/__init__.py @@ -26,15 +26,17 @@ from searxng import logger, settings logger = logger.getChild('plugins') -from searxng.plugins import (oa_doi_rewrite, - ahmia_filter, - hash_plugin, - infinite_scroll, - self_info, - hostname_replace, - search_on_category_select, - tracker_url_remover, - vim_hotkeys) +from searxng.plugins import ( + oa_doi_rewrite, + ahmia_filter, + hash_plugin, + infinite_scroll, + self_info, + hostname_replace, + search_on_category_select, + tracker_url_remover, + vim_hotkeys +) required_attrs = (('name', str), ('description', str), diff --git a/tests/unit/test_preferences.py b/tests/unit/test_preferences.py index 79bb40cc3..1b4c2f2bc 100644 --- a/tests/unit/test_preferences.py +++ b/tests/unit/test_preferences.py @@ -1,5 +1,12 @@ -from searxng.preferences import (EnumStringSetting, MapSetting, MissingArgumentException, SearchLanguageSetting, - MultipleChoiceSetting, PluginsSetting, ValidationException) +from searxng.preferences import ( + EnumStringSetting, + MapSetting, + MissingArgumentException, + SearchLanguageSetting, + MultipleChoiceSetting, + PluginsSetting, + ValidationException +) from tests import SearxTestCase