Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sqlmesh/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2247,17 +2247,17 @@ def audit(
self,
start: TimeLike,
end: TimeLike,
execution_time: t.Optional[TimeLike] = None,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this moved?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, let's keep execution_time keyword-only 👍

*,
models: t.Optional[t.Iterator[str]] = None,
execution_time: t.Optional[TimeLike] = None,
) -> bool:
"""Audit models.

Args:
start: The start of the interval to audit.
end: The end of the interval to audit.
models: The models to audit. All models will be audited if not specified.
execution_time: The date/time time reference to use for execution time. Defaults to now.
models: The models to audit. All models will be audited if not specified.

Returns:
False if any of the audits failed, True otherwise.
Expand All @@ -2279,6 +2279,7 @@ def audit(
snapshot=snapshot,
start=start,
end=end,
execution_time=execution_time,
snapshots=self.snapshots,
):
audit_id = f"{audit_result.audit.name}"
Expand Down