diff --git a/tartufo/config.py b/tartufo/config.py index fde3fee4..2d253a7b 100644 --- a/tartufo/config.py +++ b/tartufo/config.py @@ -208,9 +208,9 @@ def load_rules_from_file(rules_file: TextIO) -> Set[Rule]: rule = Rule( name=rule_name, pattern=re.compile(rule_definition["pattern"]), - path_pattern=re.compile(path_pattern) - if path_pattern - else EMPTY_PATTERN, + path_pattern=( + re.compile(path_pattern) if path_pattern else EMPTY_PATTERN + ), re_match_type=MatchType.Match, re_match_scope=None, )