Browse Source

Bump pylint from 2.9.6 to 2.10.2

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.9.6 to 2.10.2.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.10.2)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
pull/2948/head
dependabot[bot] 2 months ago
committed by Noémi Ványi
parent
commit
e271d6d1e1
  1. 2
      requirements-dev.txt
  2. 2
      searx/engines/google_images.py
  3. 2
      searx/engines/google_videos.py
  4. 2
      searx/engines/meilisearch.py
  5. 6
      searx/preferences.py
  6. 2
      searx_extra/update/update_external_bangs.py
  7. 4
      tests/unit/test_utils.py

2
requirements-dev.txt

@ -2,7 +2,7 @@ mock==4.0.3
nose2[coverage_plugin]==0.10.0
cov-core==1.15.0
pycodestyle==2.7.0
pylint==2.9.6
pylint==2.10.2
splinter==0.15.0
transifex-client==0.14.3
selenium==3.141.0

2
searx/engines/google_images.py

@ -70,7 +70,7 @@ filter_mapping = {
def scrap_out_thumbs(dom):
"""Scrap out thumbnail data from <script> tags.
"""
ret_val = dict()
ret_val = {}
for script in eval_xpath(dom, '//script[contains(., "_setImgSrc(")]'):
_script = script.text
# _setImgSrc('0','data:image\/jpeg;base64,\/9j\/4AAQSkZJR ....');

2
searx/engines/google_videos.py

@ -84,7 +84,7 @@ def _re(regexpr):
def scrap_out_thumbs(dom):
"""Scrap out thumbnail data from <script> tags.
"""
ret_val = dict()
ret_val = {}
thumb_name = 'vidthumb'
for script in eval_xpath_list(dom, '//script[contains(., "_setImagesSrc")]'):

2
searx/engines/meilisearch.py

@ -11,7 +11,7 @@ from json import loads, dumps
base_url = 'http://localhost:7700'
index = ''
auth_key = ''
facet_filters = list()
facet_filters = []
_search_url = ''
result_template = 'key-value.html'
categories = ['general']

6
searx/preferences.py

@ -283,7 +283,7 @@ class EnginesSetting(SwitchableSetting):
transformed_choices = []
for engine_name, engine in self.choices.items(): # pylint: disable=no-member,access-member-before-definition
for category in engine.categories:
transformed_choice = dict()
transformed_choice = {}
transformed_choice['default_on'] = not engine.disabled
transformed_choice['id'] = '{}__{}'.format(engine_name, category)
transformed_choices.append(transformed_choice)
@ -294,7 +294,7 @@ class EnginesSetting(SwitchableSetting):
def transform_values(self, values):
if len(values) == 1 and next(iter(values)) == '':
return list()
return []
transformed_values = []
for value in values:
engine, category = value.split('__')
@ -309,7 +309,7 @@ class PluginsSetting(SwitchableSetting):
super()._post_init()
transformed_choices = []
for plugin in self.choices: # pylint: disable=access-member-before-definition
transformed_choice = dict()
transformed_choice = {}
transformed_choice['default_on'] = plugin.default_on
transformed_choice['id'] = plugin.id
transformed_choices.append(transformed_choice)

2
searx_extra/update/update_external_bangs.py

@ -153,5 +153,5 @@ if __name__ == '__main__':
'version': bangs_version,
'trie': parse_ddg_bangs(fetch_ddg_bangs(bangs_url))
}
with open(get_bangs_filename(), 'w') as fp:
with open(get_bangs_filename(), 'w', encoding='utf-8') as fp:
json.dump(output, fp, ensure_ascii=False, indent=4)

4
tests/unit/test_utils.py

@ -114,9 +114,9 @@ class TestUtils(SearxTestCase):
def test_ecma_unscape(self):
self.assertEqual(utils.ecma_unescape('text%20with%20space'), 'text with space')
self.assertEqual(utils.ecma_unescape('text using %xx: %F3'),
u'text using %xx: ó')
'text using %xx: ó')
self.assertEqual(utils.ecma_unescape('text using %u: %u5409, %u4E16%u754c'),
u'text using %u: 吉, 世界')
'text using %u: 吉, 世界')
class TestHTMLTextExtractor(SearxTestCase):

Loading…
Cancel
Save