Skip to content

Commit d7d985f

Browse files
committed
black
1 parent 12f6b98 commit d7d985f

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

src/sempy_labs/directlake/_dl_helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ def get_direct_lake_source(
225225
(workspace_name, workspace_id) = resolve_workspace_name_and_id(workspace)
226226
sql_endpoint_id = get_direct_lake_sql_endpoint(dataset=dataset, workspace=workspace)
227227
dfI = fabric.list_items(workspace=workspace)
228-
dfI_filt = dfI[(dfI["Id"] == sql_endpoint_id) & (dfI["Type"].isin(["SQLEndpoint","Warehouse"]))]
228+
dfI_filt = dfI[
229+
(dfI["Id"] == sql_endpoint_id)
230+
& (dfI["Type"].isin(["SQLEndpoint", "Warehouse"]))
231+
]
229232

230233
artifact_type, artifact_name, artifact_id = None, None, None
231234

src/sempy_labs/lakehouse/_helper.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,17 @@ def read_vorder_tag(delta_log_path):
6868
latest_file = os.path.join(delta_log_path, json_files[0])
6969

7070
with open(latest_file, "r") as f:
71-
all_data = [json.loads(line) for line in f if line.strip()] # one dict per line
71+
all_data = [
72+
json.loads(line) for line in f if line.strip()
73+
] # one dict per line
7274
for data in all_data:
73-
if 'metaData' in data:
74-
return data.get('metaData', {}).get('configuration', {}).get('delta.parquet.vorder.enabled', 'false') == 'true'
75+
if "metaData" in data:
76+
return (
77+
data.get("metaData", {})
78+
.get("configuration", {})
79+
.get("delta.parquet.vorder.enabled", "false")
80+
== "true"
81+
)
7582

7683
# If no metaData, fall back to commitInfo
7784
for data in all_data:

src/sempy_labs/lakehouse/_lakehouse.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ def is_valid_format(time_string):
245245
client="fabric_sp",
246246
)
247247

248-
print(f"{icons.in_progress} The table maintenance job for the '{table_name}' table in the '{lakehouse_name}' lakehouse within the '{workspace_name}' workspace has been initiated.")
248+
print(
249+
f"{icons.in_progress} The table maintenance job for the '{table_name}' table in the '{lakehouse_name}' lakehouse within the '{workspace_name}' workspace has been initiated."
250+
)
249251

250252
status_url = response.headers.get("Location").split("fabric.microsoft.com")[1]
251253
status = None

0 commit comments

Comments
 (0)