Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 05cefb8

Browse files
committed
format
1 parent 6067fb0 commit 05cefb8

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

data_diff/dbt.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,7 @@ def dbt_diff(
107107

108108
if diff_vars.primary_keys:
109109
if is_cloud:
110-
diff_thread = run_as_daemon(
111-
_cloud_diff,
112-
diff_vars,
113-
datafold_host,
114-
url,
115-
api_key
116-
)
110+
diff_thread = run_as_daemon(_cloud_diff, diff_vars, datafold_host, url, api_key)
117111
diff_threads.append(diff_thread)
118112
else:
119113
_local_diff(diff_vars)
@@ -237,8 +231,7 @@ def _local_diff(diff_vars: DiffVars) -> None:
237231
)
238232

239233

240-
def _cloud_diff(diff_vars: DiffVars, datafold_host:str, url:str, api_key:str) -> None:
241-
234+
def _cloud_diff(diff_vars: DiffVars, datafold_host: str, url: str, api_key: str) -> None:
242235
if diff_vars.datasource_id is None:
243236
raise ValueError(
244237
"Datasource ID not found, include it as a dbt variable in the dbt_project.yml. \nvars:\n data_diff:\n datasource_id: 1234"
@@ -335,6 +328,7 @@ def _cloud_diff(diff_vars: DiffVars, datafold_host:str, url:str, api_key:str) ->
335328
if error:
336329
logger.error(error)
337330

331+
338332
def _setup_cloud_diff() -> tuple[str]:
339333
datafold_host = os.environ.get("DATAFOLD_HOST")
340334
if datafold_host is None:
@@ -353,7 +347,7 @@ def _setup_cloud_diff() -> tuple[str]:
353347
else:
354348
raise ValueError("Cannot diff because the API key is not provided")
355349

356-
return datafold_host,url,api_key
350+
return datafold_host, url, api_key
357351

358352

359353
def _cloud_submit_diff(url, payload, headers) -> str:

0 commit comments

Comments
 (0)