|
7 | 7 | import rich |
8 | 8 | from rich.prompt import Prompt |
9 | 9 |
|
10 | | -from data_diff.errors import DataDiffCustomSchemaNoConfigError, DataDiffDbtProjectVarsNotFoundError, DataDiffNoAPIKeyError, DataDiffNoDatasourceIdError |
| 10 | +from data_diff.errors import ( |
| 11 | + DataDiffCustomSchemaNoConfigError, |
| 12 | + DataDiffDbtProjectVarsNotFoundError, |
| 13 | + DataDiffNoAPIKeyError, |
| 14 | + DataDiffNoDatasourceIdError, |
| 15 | +) |
11 | 16 |
|
12 | 17 | from . import connect_to_table, diff_tables, Algorithm |
13 | | -from .cloud import DatafoldAPI, TCloudApiDataDiff, TCloudApiOrgMeta, get_or_create_data_source |
| 18 | +from .cloud import DatafoldAPI, TCloudApiDataDiff, TCloudApiOrgMeta |
14 | 19 | from .dbt_parser import DbtParser, TDatadiffConfig |
15 | 20 | from .tracking import ( |
16 | 21 | bool_ask_for_email, |
@@ -66,7 +71,6 @@ def dbt_diff( |
66 | 71 | config = dbt_parser.get_datadiff_config() |
67 | 72 | _initialize_events(dbt_parser.dbt_user_id, dbt_parser.dbt_version, dbt_parser.dbt_project_id) |
68 | 73 |
|
69 | | - |
70 | 74 | if not state and not (config.prod_database or config.prod_schema): |
71 | 75 | doc_url = "https://docs.datafold.com/development_testing/open_source#configure-your-dbt-project" |
72 | 76 | raise DataDiffDbtProjectVarsNotFoundError( |
@@ -407,7 +411,7 @@ def _initialize_events(dbt_user_id: Optional[str], dbt_version: Optional[str], d |
407 | 411 |
|
408 | 412 |
|
409 | 413 | def _email_signup() -> None: |
410 | | - email_regex = r'^[\w\.\+-]+@[\w\.-]+\.\w+$' |
| 414 | + email_regex = r"^[\w\.\+-]+@[\w\.-]+\.\w+$" |
411 | 415 | prompt = "\nWould you like to be notified when a new data-diff version is available?\n\nEnter email or leave blank to opt out (we'll only ask once).\n" |
412 | 416 |
|
413 | 417 | if bool_ask_for_email(): |
|
0 commit comments