Skip to content

Commit

Permalink
silence syntaxwarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörg Zimmermann committed Jan 2, 2025
1 parent 01429b3 commit 6ca0e95
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions logprep/filter/lucene_filter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=anomalous-backslash-in-string
"""
r"""
Filter
======
Expand Down Expand Up @@ -91,13 +91,13 @@
regex_fields:
- ip_address
"""
import logging
import re
from itertools import chain, zip_longest

# pylint: enable=anomalous-backslash-in-string
from typing import List, Optional, Union

import logging
import luqum
from luqum.parser import IllegalCharacterError, ParseSyntaxError, parser
from luqum.tree import (
Expand All @@ -107,7 +107,6 @@
Not,
OrOperation,
Phrase,
Regex,
SearchField,
Word,
)
Expand Down
2 changes: 1 addition & 1 deletion logprep/processor/dissector/rule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
r"""
Rule Configuration
^^^^^^^^^^^^^^^^^^
Expand Down
4 changes: 2 additions & 2 deletions logprep/processor/generic_resolver/rule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
r"""
Rule Configuration
^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -91,7 +91,7 @@
import re
from functools import cached_property
from pathlib import Path
from typing import Optional, Tuple, List
from typing import List, Optional, Tuple

from attrs import define, field, validators

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/test_error_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_error_output_errors_are_logged_if_error_output_has_an_error(
proc = start_logprep(config_path)
wait_for_output(
proc,
".*\[Error Event\] Couldn't enqueue error item due to:.*",
r".*\[Error Event\] Couldn't enqueue error item due to:.*",
test_timeout=30,
forbidden_outputs=[],
)

0 comments on commit 6ca0e95

Please sign in to comment.