mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -177,7 +177,7 @@ class CouchbaseEngineSpec(BasicParametersMixin, BaseEngineSpec):
|
||||
) -> list[SupersetError]:
|
||||
"""
|
||||
Couchbase local server needs hostname and port but on cloud we need only connection String along with credentials to connect.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
errors: list[SupersetError] = []
|
||||
|
||||
required = {"host", "username", "password", "database"}
|
||||
@@ -197,7 +197,7 @@ class CouchbaseEngineSpec(BasicParametersMixin, BaseEngineSpec):
|
||||
host = parameters.get("host", None)
|
||||
if not host:
|
||||
return errors
|
||||
# host can be a connection string in case of couchbase cloud. So Connection Check is not required in that case.
|
||||
# host can be a connection string in case of couchbase cloud. So Connection Check is not required in that case. # noqa: E501
|
||||
if not is_hostname_valid(host):
|
||||
errors.append(
|
||||
SupersetError(
|
||||
|
||||
Reference in New Issue
Block a user