From ebcea21dcaac7b2952c47d37622399da34fb4df0 Mon Sep 17 00:00:00 2001 From: Scott Bailey Date: Thu, 28 Mar 2024 13:53:50 -0400 Subject: [PATCH] Reformat with 2024 rules --- tartufo/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, )