Skip to content

Commit b1a8ba2

Browse files
committed
make style formatting changes.
Signed-off-by: davem-bis <68955845+davem-bis@users.noreply.github.com>
1 parent e6836f7 commit b1a8ba2

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎sqlmesh/core/plan/stages.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,10 @@ def _get_audit_only_snapshots(
629629
return audit_snapshots
630630

631631
def _get_snapshots_to_create(
632-
self, plan: EvaluatablePlan, snapshots: t.Dict[SnapshotId, Snapshot], deployability_index: DeployabilityIndex
632+
self,
633+
plan: EvaluatablePlan,
634+
snapshots: t.Dict[SnapshotId, Snapshot],
635+
deployability_index: DeployabilityIndex,
633636
) -> t.List[Snapshot]:
634637
promoted_snapshot_ids = (
635638
set(plan.environment.promoted_snapshot_ids)
@@ -642,7 +645,9 @@ def _should_create(s: Snapshot) -> bool:
642645
return False
643646

644647
# Do not create snapshots that contain production data but can never be deployed.
645-
if deployability_index.is_representative(s) and not deployability_index.is_deployable(s):
648+
if deployability_index.is_representative(s) and not deployability_index.is_deployable(
649+
s
650+
):
646651
return False
647652

648653
# Only create tables for snapshots that we're planning to promote or that were selected for backfill

‎sqlmesh/core/scheduler.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,13 @@ def merged_missing_intervals(
187187
# to correctly infer start dates.
188188
if selected_snapshots is not None:
189189
snapshots_to_intervals = {
190-
s: i for s, i in snapshots_to_intervals.items() if s.name in selected_snapshots and not (deployability_index.is_representative(s) and not deployability_index.is_deployable(s))
190+
s: i
191+
for s, i in snapshots_to_intervals.items()
192+
if s.name in selected_snapshots
193+
and not (
194+
deployability_index.is_representative(s)
195+
and not deployability_index.is_deployable(s)
196+
)
191197
}
192198
return snapshots_to_intervals
193199

0 commit comments

Comments
 (0)