Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dostonbek1 committed Feb 3, 2025
1 parent 26d8ad2 commit 0a028ca
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions extensions/eda/plugins/event_filter/dashes_to_underscores.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import multiprocessing as mp
from typing import Any

DOCUMENTATION = r"""
---
author:
Expand All @@ -13,9 +16,6 @@
default: true
"""

import multiprocessing as mp
from typing import Any


def main(
event: dict[str, Any], overwrite: bool = True
Expand Down
14 changes: 7 additions & 7 deletions extensions/eda/plugins/event_filter/insert_hosts_to_meta.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from __future__ import annotations

import logging
from typing import Any

import dpath

DOCUMENTATION = r"""
---
author:
Expand Down Expand Up @@ -56,13 +63,6 @@
log_error: true
"""

from __future__ import annotations

import logging
from typing import Any

import dpath

LOGGER = logging.getLogger(__name__)


Expand Down
10 changes: 5 additions & 5 deletions extensions/eda/plugins/event_filter/json_filter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from __future__ import annotations

import fnmatch
from typing import Any, Optional

DOCUMENTATION = r"""
---
author:
Expand All @@ -22,11 +27,6 @@
default: null
"""

from __future__ import annotations

import fnmatch
from typing import Any, Optional


def _matches_include_keys(include_keys: list[str], string: str) -> bool:
return any(fnmatch.fnmatch(string, pattern) for pattern in include_keys)
Expand Down
4 changes: 2 additions & 2 deletions extensions/eda/plugins/event_filter/noop.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Any

DOCUMENTATION = r"""
---
author:
Expand All @@ -7,8 +9,6 @@
- An event filter that does nothing to the input.
"""

from typing import Any


def main(event: dict[str, Any]) -> dict[str, Any]:
"""Return the input."""
Expand Down
10 changes: 5 additions & 5 deletions extensions/eda/plugins/event_filter/normalize_keys.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import logging
import multiprocessing as mp
import re
from typing import Any

DOCUMENTATION = r"""
---
author:
Expand Down Expand Up @@ -37,11 +42,6 @@
overwrite: false
"""

import logging
import multiprocessing as mp
import re
from typing import Any

normalize_regex = re.compile("[^0-9a-zA-Z_]+")


Expand Down

0 comments on commit 0a028ca

Please sign in to comment.