Merge pull request #2173 from searxng/dependabot/pip/master/pylint-2.16.1

Bump pylint from 2.15.10 to 2.16.1
This commit is contained in:
Markus Heiser 2023-02-10 14:15:38 +01:00 committed by GitHub
commit 3ebbdc179c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 13 additions and 4 deletions

View File

@ -404,4 +404,4 @@ known-third-party=enchant
# Exceptions that will emit a warning when being caught. Defaults to # Exceptions that will emit a warning when being caught. Defaults to
# "Exception" # "Exception"
overgeneral-exceptions=Exception overgeneral-exceptions=builtins.Exception

View File

@ -2,7 +2,7 @@ mock==5.0.1
nose2[coverage_plugin]==0.12.0 nose2[coverage_plugin]==0.12.0
cov-core==1.15.0 cov-core==1.15.0
black==22.12.0 black==22.12.0
pylint==2.15.10 pylint==2.16.1
splinter==0.19.0 splinter==0.19.0
selenium==4.8.0 selenium==4.8.0
twine==4.0.2 twine==4.0.2

View File

@ -3,6 +3,7 @@
"""This module implements functions needed for the autocompleter. """This module implements functions needed for the autocompleter.
""" """
# pylint: disable=use-dict-literal
from json import loads from json import loads
from urllib.parse import urlencode from urllib.parse import urlencode

View File

@ -2,6 +2,7 @@
# lint: pylint # lint: pylint
"""Semantic Scholar (Science) """Semantic Scholar (Science)
""" """
# pylint: disable=use-dict-literal
from urllib.parse import urlencode from urllib.parse import urlencode
from searx.utils import html_to_text from searx.utils import html_to_text

View File

@ -3,6 +3,7 @@
"""Docker Hub (IT) """Docker Hub (IT)
""" """
# pylint: disable=use-dict-literal
from json import loads from json import loads
from urllib.parse import urlencode from urllib.parse import urlencode

View File

@ -3,7 +3,7 @@
""" """
Gigablast (Web) Gigablast (Web)
""" """
# pylint: disable=invalid-name # pylint: disable=invalid-name, use-dict-literal
import re import re
from time import time from time import time

View File

@ -4,6 +4,7 @@
"""Processores for engine-type: ``online`` """Processores for engine-type: ``online``
""" """
# pylint: disable=use-dict-literal
from timeit import default_timer from timeit import default_timer
import asyncio import asyncio

View File

@ -5,6 +5,8 @@
"""WebbApp """WebbApp
""" """
# pylint: disable=use-dict-literal
import hashlib import hashlib
import hmac import hmac
import json import json

View File

@ -9,6 +9,7 @@ Output file: :origin:`searx/data/ahmia_blacklist.txt` (:origin:`CI Update data
.. _Ahmia's blacklist: https://ahmia.fi/blacklist/ .. _Ahmia's blacklist: https://ahmia.fi/blacklist/
""" """
# pylint: disable=use-dict-literal
from os.path import join from os.path import join
@ -21,6 +22,7 @@ URL = 'https://ahmia.fi/blacklist/banned/'
def fetch_ahmia_blacklist(): def fetch_ahmia_blacklist():
resp = requests.get(URL, timeout=3.0) resp = requests.get(URL, timeout=3.0)
if resp.status_code != 200: if resp.status_code != 200:
# pylint: disable=broad-exception-raised
raise Exception("Error fetching Ahmia blacklist, HTTP code " + resp.status_code) raise Exception("Error fetching Ahmia blacklist, HTTP code " + resp.status_code)
return resp.text.split() return resp.text.split()

View File

@ -1,13 +1,13 @@
#!/usr/bin/env python #!/usr/bin/env python
# lint: pylint # lint: pylint
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
"""Fetch firefox useragent signatures """Fetch firefox useragent signatures
Output file: :origin:`searx/data/useragents.json` (:origin:`CI Update data ... Output file: :origin:`searx/data/useragents.json` (:origin:`CI Update data ...
<.github/workflows/data-update.yml>`). <.github/workflows/data-update.yml>`).
""" """
# pylint: disable=use-dict-literal
import json import json
import re import re
@ -40,6 +40,7 @@ useragents = {
def fetch_firefox_versions(): def fetch_firefox_versions():
resp = requests.get(URL, timeout=2.0) resp = requests.get(URL, timeout=2.0)
if resp.status_code != 200: if resp.status_code != 200:
# pylint: disable=broad-exception-raised
raise Exception("Error fetching firefox versions, HTTP code " + resp.status_code) raise Exception("Error fetching firefox versions, HTTP code " + resp.status_code)
dom = html.fromstring(resp.text) dom = html.fromstring(resp.text)
versions = [] versions = []