Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MoessnerFabian(Group) committed Oct 25, 2024
1 parent aa02d6a commit a354dc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions logprep/filter/lucene_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ def __init__(self, tree: luqum.tree, special_fields: dict = None):

self._last_search_field = None


def build_filter(self) -> FilterExpression:
"""Transform luqum tree into FilterExpression
Expand Down Expand Up @@ -334,7 +333,7 @@ def _get_filter_expression(
if self._special_fields.items():
for sf_key, sf_value in self._special_fields.items():
if sf_value is True or dotted_field in sf_value:
if sf_key == 'regex_fields':
if sf_key == "regex_fields":
logger.warning(
"[Deprecated]: regex_fields are no longer necessary. "
"Use Lucene regex annotation."
Expand Down
1 change: 0 additions & 1 deletion tests/unit/filter/test_lucene_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ def test_creates_lucene_compliance_filter_one_regex_key(self):

assert lucene_filter == RegExFilterExpression(["regex_key_one"], ".*value.*")


def test_creates_lucene_compliance_filter_one_matching_one_missmatch_regex_key_of_two(self):
lucene_filter = LuceneFilter.create(
'regex_key_one: "/.*value.*/" AND key_two: "value"',
Expand Down

0 comments on commit a354dc9

Please sign in to comment.