Skip to content

Commit

Permalink
fix black for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Jan 29, 2025
1 parent 858f250 commit b303fc6
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion logprep/abc/component.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" abstract module for components"""
"""abstract module for components"""

import functools
import inspect
Expand Down
2 changes: 1 addition & 1 deletion logprep/abc/connector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" abstract module for connectors"""
"""abstract module for connectors"""

from attrs import define, field

Expand Down
2 changes: 1 addition & 1 deletion logprep/abc/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" abstract module for exceptions"""
"""abstract module for exceptions"""


class LogprepException(Exception):
Expand Down
2 changes: 1 addition & 1 deletion logprep/configuration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""module for component configuration """
"""module for component configuration"""

from typing import TYPE_CHECKING, Any, Mapping

Expand Down
2 changes: 1 addition & 1 deletion logprep/framework/rule_tree/rule_tagger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module implements functionality to add tags to filter expressions. """
"""This module implements functionality to add tags to filter expressions."""

from typing import Union, List

Expand Down
2 changes: 1 addition & 1 deletion logprep/generator/kafka/configuration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Contains configuration class with configuration validation """
"""Contains configuration class with configuration validation"""

# pylint: disable=too-few-public-methods
import sys
Expand Down
4 changes: 2 additions & 2 deletions logprep/processor/pre_detector/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
ip_fields:
- some_ip_field
The pre_detector also has the option to normalize the timestamp.
The pre_detector also has the option to normalize the timestamp.
To configure this the following parameters can be set in the rule configuration.
.. code-block:: yaml
Expand All @@ -110,7 +110,7 @@
target_timezone: <the timezone after normalization>
description: Some malicious event.
All of these new parameters are configurable and default to
All of these new parameters are configurable and default to
standard values if not explicitly set.
.. autoclass:: logprep.processor.pre_detector.rule.PreDetectorRule.Config
Expand Down
2 changes: 1 addition & 1 deletion logprep/processor/timestamper/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:caption: Given timestamper rule
filter: "winlog.event_id: 123456789"
timestamper:
timestamper:
source_fields: ["winlog.event_data.some_timestamp_utc"]
target_field: "@timestamp"
source_format: UNIX
Expand Down
4 changes: 2 additions & 2 deletions logprep/registry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""module for processor registry
it is used to check if a processor is known to the system.
you have to register new processors here by import them and add to `ProcessorRegistry.mapping`
it is used to check if a processor is known to the system.
you have to register new processors here by import them and add to `ProcessorRegistry.mapping`
"""

from logprep.connector.confluent_kafka.input import ConfluentKafkaInput
Expand Down
10 changes: 5 additions & 5 deletions logprep/util/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
filled with the correct values that correspond to the method you want to use.
.. code-block:: yaml
:caption: Example for credentials file
:caption: Example for credentials file
getter:
"http://target.url":
# example for token given directly via file
Expand Down Expand Up @@ -71,11 +71,11 @@
/second*:
username: <username>
password: <password>
Options for the credentials file are:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: logprep.util.credentials.BasicAuthCredentials
:members: username, password
:no-index:
Expand All @@ -88,7 +88,7 @@
.. autoclass:: logprep.util.credentials.MTLSCredentials
:members: client_key, cert, ca_cert
:no-index:
Authentication Process:
^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: ../_images/Credentials.svg
Expand Down
2 changes: 1 addition & 1 deletion logprep/util/grok/grok.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
original code from https://github.com/garyelephant/pygrok released under MIT Licence
The MIT License (MIT)
Copyright (c) 2014
Copyright (c) 2014
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion logprep/util/json_handling.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" module for json handling helper methods"""
"""module for json handling helper methods"""

import json
import os
Expand Down
2 changes: 1 addition & 1 deletion logprep/util/url/url.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" helper functions for URL extraction and validation.
"""helper functions for URL extraction and validation.
Code is inspired by django url validation:
https://docs.djangoproject.com/en/4.1/_modules/django/core/validators/
"""
Expand Down
2 changes: 1 addition & 1 deletion logprep/util/validators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" validators to use with `attrs` fields"""
"""validators to use with `attrs` fields"""

import os
import typing
Expand Down

0 comments on commit b303fc6

Please sign in to comment.