parent
530a813bc2
commit
9ed2beacec
|
@ -42,7 +42,6 @@ class Utility:
|
|||
https_proxy = proxy_config.get("https_proxy", "")
|
||||
|
||||
# https://docs.splunk.com/Documentation/Splunk/9.0.3/Admin/Serverconf#Splunkd_http_proxy_configuration
|
||||
# pylint: disable=too-many-boolean-expressions
|
||||
if (
|
||||
# either configs should not be empty
|
||||
(len(http_proxy) >= 1 or len(https_proxy) >= 1)
|
||||
|
@ -58,7 +57,6 @@ class Utility:
|
|||
|
||||
return {}
|
||||
|
||||
# pylint: disable=inconsistent-return-statements
|
||||
def download(self, urls, index=0):
|
||||
"""
|
||||
Send a GET request to the URL and return content of the response.
|
||||
|
@ -74,7 +72,6 @@ class Utility:
|
|||
proxy_config = self.__get_proxy(url)
|
||||
try:
|
||||
res = requests.get(url, timeout=5, **proxy_config)
|
||||
# pylint: disable=no-member
|
||||
if res.status_code == requests.codes.ok:
|
||||
return res.text
|
||||
|
||||
|
|
|
@ -3,27 +3,6 @@
|
|||
py-version = "3.7"
|
||||
init-hook='import sys; sys.path.append("./bin")'
|
||||
|
||||
[tool.pylint.'MESSAGES CONTROL']
|
||||
disable = [
|
||||
"raw-checker-failed",
|
||||
"bad-inline-option",
|
||||
"locally-disabled",
|
||||
"file-ignored",
|
||||
"suppressed-message",
|
||||
"useless-suppression",
|
||||
"deprecated-pragma",
|
||||
"use-symbolic-message-instead",
|
||||
"invalid-name",
|
||||
"unspecified-encoding", # assume UTF-8
|
||||
"line-too-long",
|
||||
"too-many-nested-blocks",
|
||||
"too-many-branches",
|
||||
"duplicate-code",
|
||||
"redefined-outer-name",
|
||||
"fixme",
|
||||
"wrong-import-position"
|
||||
]
|
||||
|
||||
[tool.pylint.'FORMAT']
|
||||
indent-after-paren = 4
|
||||
indent-string = " "
|
||||
|
|
Loading…
Reference in New Issue