Skip to content

Commit

Permalink
Reformat with 2024 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rscottbailey committed Mar 28, 2024
1 parent cd68f13 commit ebcea21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tartufo/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit ebcea21

Please sign in to comment.