Skip to content

Commit 51f6a2b

Browse files
authored
Fix: Ignore symbolic models in the NoMissingAudits linting rule (#4100)
1 parent a74905c commit 51f6a2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sqlmesh/core/linter/rules/builtin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class NoMissingAudits(Rule):
5252
"""Model `audits` must be configured to test data quality."""
5353

5454
def check_model(self, model: Model) -> t.Optional[RuleViolation]:
55-
return self.violation() if not model.audits else None
55+
return self.violation() if not model.audits and not model.kind.is_symbolic else None
5656

5757

5858
BUILTIN_RULES = RuleSet(subclasses(__name__, Rule, (Rule,)))

sqlmesh/utils/date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
# The Freshness Date Data Parser doesn't support plural units so we add the `s?` to the expression
36-
freshness_date_parser_module.PATTERN = re.compile(
36+
freshness_date_parser_module.PATTERN = re.compile( # type: ignore
3737
r"(\d+[.,]?\d*)\s*(%s)s?\b" % freshness_date_parser_module._UNITS, # type: ignore
3838
re.I | re.S | re.U, # type: ignore
3939
)

0 commit comments

Comments
 (0)