Skip to content

Commit

Permalink
fixed black
Browse files Browse the repository at this point in the history
  • Loading branch information
Malutthias committed Oct 22, 2024
1 parent 5c5f9fe commit 18e549c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions logprep/util/auto_rule_tester/auto_rule_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def _get_rule_dirs_by_processor_name(self) -> defaultdict:

@staticmethod
def _get_rules_to_add(processor_cfg) -> list:
"""Áccumulate rules depending on processor (config)
"""Accumulate rules depending on processor (config)
Parameters
----------
Expand All @@ -753,9 +753,10 @@ def _get_rules_to_add(processor_cfg) -> list:

if processor_cfg.get("rules"):
rules_to_add.append(("rules", processor_cfg["rules"]))
elif processor_cfg.get("generic_rules") and processor_cfg.get("specific_rules"):
elif (
processor_cfg.get("generic_rules") and processor_cfg.get("specific_rules")
):
rules_to_add.append(("generic_rules", processor_cfg["generic_rules"][0]))
rules_to_add.append(("specific_rules", processor_cfg["specific_rules"][0]))

return rules_to_add

0 comments on commit 18e549c

Please sign in to comment.