Skip to content

Commit 12e19cc

Browse files
committed
run black
1 parent 063979d commit 12e19cc

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

data_scribe/components/db_connectors/duckdb_connector.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def get_columns(self, table_name: str) -> List[Dict[str, str]]:
144144

145145
except Exception as e:
146146
logger.error(
147-
f"Failed to fetch columns for '{table_name}': {e}", exc_info=True
147+
f"Failed to fetch columns for '{table_name}': {e}",
148+
exc_info=True,
148149
)
149150
raise ConnectorError(
150151
f"Failed to fetch columns for '{table_name}': {e}"
@@ -229,7 +230,9 @@ def get_column_profile(
229230
}
230231
return stats
231232
except Exception as e:
232-
logger.warning(f"Failed to profile '{table_name}.{column_name}': {e}")
233+
logger.warning(
234+
f"Failed to profile '{table_name}.{column_name}': {e}"
235+
)
233236
return {
234237
"null_ratio": "N/A",
235238
"distinct_count": "N/A",

data_scribe/components/db_connectors/sql_base_connector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ def get_column_profile(
254254
"distinct_count": distinct_count,
255255
"is_unique": is_unique,
256256
}
257-
logger.info(f" - Profile for '{table_name}.{column_name}': {stats}")
257+
logger.info(
258+
f" - Profile for '{table_name}.{column_name}': {stats}"
259+
)
258260
return stats
259261

260262
except Exception as e:

data_scribe/components/db_connectors/sqlite_connector.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ def get_foreign_keys(self) -> List[Dict[str, str]]:
182182
}
183183
)
184184
except sqlite3.Error as e:
185-
logger.warning(f"Failed to get FKs for table '{table_name}': {e}")
185+
logger.warning(
186+
f"Failed to get FKs for table '{table_name}': {e}"
187+
)
186188

187189
logger.info(f"Found {len(foreign_keys)} foreign key relationships.")
188190
return foreign_keys
@@ -249,7 +251,9 @@ def get_column_profile(
249251
"distinct_count": distinct_count,
250252
"is_unique": is_unique,
251253
}
252-
logger.info(f" - Profile for '{table_name}.{column_name}': {stats}")
254+
logger.info(
255+
f" - Profile for '{table_name}.{column_name}': {stats}"
256+
)
253257
return stats
254258
except sqlite3.Error as e:
255259
logger.warning(

data_scribe/components/writers/dbt_yaml_writer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ def _create_new_model_stub(
318318

319319
else:
320320
# File does not exist, create new
321-
logger.info(f" -> Creating new file for stub: '{target_yaml_path}'")
321+
logger.info(
322+
f" -> Creating new file for stub: '{target_yaml_path}'"
323+
)
322324
new_yaml_data = CommentedMap()
323325
new_yaml_data["version"] = 2
324326
new_yaml_data["models"] = [new_model_stub]

data_scribe/components/writers/notion_writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def _create_column_table(
293293
self._text_cell("Data Type"),
294294
self._text_cell("AI-Generated Description"),
295295
]
296-
}
296+
},
297297
}
298298

299299
rows = [header]
@@ -313,7 +313,7 @@ def _create_column_table(
313313
self._text_cell(col.get("type")),
314314
self._text_cell(desc),
315315
],
316-
}
316+
},
317317
}
318318
rows.append(row)
319319

0 commit comments

Comments
 (0)