Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[All connectors] Fix Update format following Black dependency upgrade #3346

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions external-import/comlaude/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" Comlaude main integration.
"""Comlaude main integration.

isort:skip_file
isort:skip_file
"""

import datetime
Expand Down
2 changes: 1 addition & 1 deletion external-import/eset/src/eti_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Client implementation of ETI API.
"""Client implementation of ETI API.

.. note::
Implemented with 3rd party package :mod:`urllib3`, because built-in :mod:`urllib` does not support multipart.
Expand Down
2 changes: 1 addition & 1 deletion external-import/intelfinder/src/intelfinder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" Intelfinder API class"""
"""Intelfinder API class"""

from .api import Intelfinder # noqa: F401
2 changes: 1 addition & 1 deletion external-import/obstracts/src/taxii2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Generic TAXII2 connector. """
"""Generic TAXII2 connector."""

import json
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def _extract_intelligence(self, incident) -> list[object]:
stix_objects.append(stix_relationship_hostname)

# processEvidence, fileEvidence and fileHashEvidence
case (
evidence_file
) if evidence_file in priority_evidence_files.keys():
case evidence_file if (
evidence_file in priority_evidence_files.keys()
):
file = (
evidence.get("imageFile")
or evidence.get("fileDetails")
Expand Down
2 changes: 1 addition & 1 deletion external-import/siemrules/src/taxii2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Generic TAXII2 connector. """
"""Generic TAXII2 connector."""

import json
import os
Expand Down
2 changes: 1 addition & 1 deletion external-import/stixify/src/taxii2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Generic TAXII2 connector. """
"""Generic TAXII2 connector."""

import json
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def cvss3_severity_from_score(
def tlp_marking_definition_handler(
marking_definition: Literal[
"TLP:CLEAR", "TLP:WHITE", "TLP:GREEN", "TLP:AMBER", "TLP:RED"
]
],
) -> stix2.MarkingDefinition:
"""
Handles Traffic Light Protocol (TLP) marking definitions and returns the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
"""
Define a set of classes representing different entities and observables within OPenCTI.
Each entity (e.g., `Author`, `System`, `Vulnerability`, etc.) corresponds to an object that can be converted into
STIX 2.0 format.

These entities are designed to be frozen Pydantic models, ensuring immutability post-instantiation.

Classes:
- BaseEntity: Abstract base class for all entities. Provides common attributes and methods
such as the generation of STIX 2 object representation and unique IDs.
- Author: Represents an identity, typically an organization, involved in reporting a threat.
- System: Represents a system or device, such as a network device or host.
- Observable: Base class for observables, which are characteristics associated with entities like
systems or assets.
- MACAddress: Represents a MAC address observable.
- IPAddress: Represents an IP address observable, with support for IPv4 and IPv6.
- DomainName: Represents a domain name observable.
- Hostname: Represents a hostname observable.
- Software: Represents software installed on a system, usually targeted by a vulnerability.
- OperatingSystem: Represents an operating system installed on a system.
- Vulnerability: Represents a vulnerability, including details like CVSS score and severity.
- RelatedToRelationship: Represents relationships between entities, specifically indicating
that one entity is related to another.
Define a set of classes representing different entities and observables within OPenCTI.
Each entity (e.g., `Author`, `System`, `Vulnerability`, etc.) corresponds to an object that can be converted into
STIX 2.0 format.

These entities are designed to be frozen Pydantic models, ensuring immutability post-instantiation.

Classes:
- BaseEntity: Abstract base class for all entities. Provides common attributes and methods
such as the generation of STIX 2 object representation and unique IDs.
- Author: Represents an identity, typically an organization, involved in reporting a threat.
- System: Represents a system or device, such as a network device or host.
- Observable: Base class for observables, which are characteristics associated with entities like
systems or assets.
- MACAddress: Represents a MAC address observable.
- IPAddress: Represents an IP address observable, with support for IPv4 and IPv6.
- DomainName: Represents a domain name observable.
- Hostname: Represents a hostname observable.
- Software: Represents software installed on a system, usually targeted by a vulnerability.
- OperatingSystem: Represents an operating system installed on a system.
- Vulnerability: Represents a vulnerability, including details like CVSS score and severity.
- RelatedToRelationship: Represents relationships between entities, specifically indicating
that one entity is related to another.
"""

from abc import abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion external-import/vulmatch/src/taxii2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Generic TAXII2 connector. """
"""Generic TAXII2 connector."""

import json
import os
Expand Down
2 changes: 1 addition & 1 deletion external-import/zerofox/src/http_/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" Provides integration-specific tools for http requests"""
"""Provides integration-specific tools for http requests"""
2 changes: 1 addition & 1 deletion external-import/zerofox/src/http_/http_request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Wrapper function for http requests."""
"""Wrapper function for http requests."""

# third-party
import requests
Expand Down
3 changes: 1 addition & 2 deletions stream/chronicle/src/common/datetime_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Helper functions to convert ISO 8601 strings into datetime objects.
"""
"""Helper functions to convert ISO 8601 strings into datetime objects."""

import datetime
import re
Expand Down