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 json import JSONDecodeError
from urllib.parse import urlparse from urllib.parse import urlparse
from httpx import HTTPError, HTTPStatusError from httpx import HTTPError, HTTPStatusError
from searxng.exceptions import (SearxXPathSyntaxException, SearxEngineXPathException, SearxEngineAPIException, from searxng.exceptions import (
SearxEngineAccessDeniedException) SearxXPathSyntaxException,
SearxEngineXPathException,
SearxEngineAPIException,
SearxEngineAccessDeniedException
)
from searxng import searxng_parent_dir from searxng import searxng_parent_dir
from searxng.engines import engines from searxng.engines import engines

View file

@ -26,15 +26,17 @@ from searxng import logger, settings
logger = logger.getChild('plugins') logger = logger.getChild('plugins')
from searxng.plugins import (oa_doi_rewrite, from searxng.plugins import (
ahmia_filter, oa_doi_rewrite,
hash_plugin, ahmia_filter,
infinite_scroll, hash_plugin,
self_info, infinite_scroll,
hostname_replace, self_info,
search_on_category_select, hostname_replace,
tracker_url_remover, search_on_category_select,
vim_hotkeys) tracker_url_remover,
vim_hotkeys
)
required_attrs = (('name', str), required_attrs = (('name', str),
('description', str), ('description', str),

View file

@ -1,5 +1,12 @@
from searxng.preferences import (EnumStringSetting, MapSetting, MissingArgumentException, SearchLanguageSetting, from searxng.preferences import (
MultipleChoiceSetting, PluginsSetting, ValidationException) EnumStringSetting,
MapSetting,
MissingArgumentException,
SearchLanguageSetting,
MultipleChoiceSetting,
PluginsSetting,
ValidationException
)
from tests import SearxTestCase from tests import SearxTestCase