Skip to content

Commit

Permalink
fix: linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zabarn committed Oct 15, 2024
1 parent 6c5c8d7 commit efd3835
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class CassandraOnlineStoreConfig(FeastConfigBaseModel):
"""Request timeout in seconds."""

ttl: Optional[StrictInt] = None
'''Time to live option'''
"""Time to live option"""

lazy_table_creation: Optional[bool] = False
"""If True, tables will be created on during materialization, rather than registration."""
Expand Down Expand Up @@ -232,8 +232,11 @@ def _get_session(self, config: RepoConfig):
if not self._session:
# configuration consistency checks
secure_bundle_path = online_store_config.secure_bundle_path
port = 19042 if online_store_config.type == "scylladb" else (
online_store_config.port or 9042)
port = (
19042
if online_store_config.type == "scylladb"
else (online_store_config.port or 9042)
)
keyspace = online_store_config.keyspace
username = online_store_config.username
password = online_store_config.password
Expand Down Expand Up @@ -465,7 +468,9 @@ def update(
project = config.project

if getattr(config.online_store, "lazy_table_creation", False):
logger.info(f"Lazy table creation enabled. Skipping table creation for {project} online store.")
logger.info(
f"Lazy table creation enabled. Skipping table creation for {project} online store."
)
# create tables during materialization
return

Expand Down Expand Up @@ -607,9 +612,7 @@ def _get_cql_statement(
ttl_clause = None

statement = template.format(
fqtable=fqtable,
optional_ttl_clause=ttl_clause,
**kwargs
fqtable=fqtable, optional_ttl_clause=ttl_clause, **kwargs
)
if prepare:
# using the statement itself as key (no problem with that)
Expand Down

0 comments on commit efd3835

Please sign in to comment.