pycodestyle check

This commit is contained in:
HLFH 2021-09-29 18:46:25 +01:00
parent ac05f0943c
commit 32cefc7101
No known key found for this signature in database
GPG key ID: 200A60A75D394102
3 changed files with 26 additions and 13 deletions

View file

@ -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

View file

@ -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),

View file

@ -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