From 24763fb995c46121aabdb8fbf50f7e929afbcf18 Mon Sep 17 00:00:00 2001 From: Bracey Summers Date: Thu, 17 Oct 2024 13:15:15 -0500 Subject: [PATCH 1/2] - APP-4640 - [api] Updated API hashing method to use SHA256 for FIPS compliance --- .cspell/custom-dictionary-workspace.txt | 1 + release_notes.md | 11 ++++++----- tcex/api/tc/v3/v3_model_abc.py | 3 ++- tcex/app/playbook | 2 +- tcex/util | 2 +- tests/api/tc/v3/groups/test_group_snippets.py | 1 + tests/api/tc/v3/v3_helpers.py | 1 + tests/conftest.py | 2 ++ 8 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.cspell/custom-dictionary-workspace.txt b/.cspell/custom-dictionary-workspace.txt index 27e578a6b..ebcbbdfe6 100644 --- a/.cspell/custom-dictionary-workspace.txt +++ b/.cspell/custom-dictionary-workspace.txt @@ -68,6 +68,7 @@ fakeredis feedapiservice fget filterwarnings +FIPS firstparty fixdate fnmatch diff --git a/release_notes.md b/release_notes.md index c65a5a907..0acf48e34 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,11 +1,12 @@ # Release Notes ## 4.0.7 -- APP-4601 - [pleb] add jmespath custom functions to pleb to centralize that functionality to be used across apps. -- APP-4604 - [transform] Add Processing Functions class to include pre-defined functions that can be used in transform builder and across TIE apps. -- APP-4605 - [transform] normalize the way null/empty values are handled in transforms, and include empty string ''. -- APP-4620 - [transform] Add structured/contextualized exceptions to transform to be able to deliver detailed error messages to users. -- APP-4632 - [transform] Add attribute.pinned field +- APP-4601 - [pleb] Added jmespath custom functions to pleb to centralize functionality +- APP-4604 - [transform] Added standard processing functions class +- APP-4605 - [transform] Normalized the way null/empty values are handled in transforms (includes '') +- APP-4620 - [transform] Added structured/contextualized exceptions to transform +- APP-4632 - [transform] Added support for attribute.pinned field +- APP-4640 - [api] Updated API hashing method to use SHA256 for FIPS compliance ## 4.0.6 diff --git a/tcex/api/tc/v3/v3_model_abc.py b/tcex/api/tc/v3/v3_model_abc.py index 92188f1dd..3f5ded08b 100644 --- a/tcex/api/tc/v3/v3_model_abc.py +++ b/tcex/api/tc/v3/v3_model_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import datetime import hashlib @@ -332,7 +333,7 @@ def _properties(self) -> dict[str, dict[str, str]]: def gen_model_hash(json_: str) -> str: """Return the current dict hash.""" # get hash of dict - hash_ = hashlib.md5() # nosec + hash_ = hashlib.sha256() # nosec encoded = json_.encode() hash_.update(encoded) return hash_.hexdigest() diff --git a/tcex/app/playbook b/tcex/app/playbook index 5033012c4..a5823e4a4 160000 --- a/tcex/app/playbook +++ b/tcex/app/playbook @@ -1 +1 @@ -Subproject commit 5033012c4bed258d53f029fcdd22136a868ca82c +Subproject commit a5823e4a49cf21a8968759815459aef7008fa5e7 diff --git a/tcex/util b/tcex/util index 0154b8b39..b77215bd7 160000 --- a/tcex/util +++ b/tcex/util @@ -1 +1 @@ -Subproject commit 0154b8b39e0fcf291cbd19fc765179888e6b547f +Subproject commit b77215bd736650b74f0ec5663df2dedb1dc84083 diff --git a/tests/api/tc/v3/groups/test_group_snippets.py b/tests/api/tc/v3/groups/test_group_snippets.py index 4dea48d24..ef1bc0109 100644 --- a/tests/api/tc/v3/groups/test_group_snippets.py +++ b/tests/api/tc/v3/groups/test_group_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import base64 import time diff --git a/tests/api/tc/v3/v3_helpers.py b/tests/api/tc/v3/v3_helpers.py index cf4d9ad1c..ed24805fb 100644 --- a/tests/api/tc/v3/v3_helpers.py +++ b/tests/api/tc/v3/v3_helpers.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import importlib import inspect diff --git a/tests/conftest.py b/tests/conftest.py index 1d48f8d67..61bd5a9fc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import hashlib import logging @@ -187,6 +188,7 @@ def pytest_configure(config): # pylint: disable=unused-argument Allows plugins and conftest files to perform initial configuration. This hook is called for every plugin and initial conftest file after command line options have been parsed. """ + os.environ['TCEX_TEST_DIR'] = os.path.join(os.getcwd(), 'tests') # remove log directory From 9970af8d7aeb80b902f28c0b596a141534a2201e Mon Sep 17 00:00:00 2001 From: Bracey Summers Date: Thu, 24 Oct 2024 13:39:05 -0500 Subject: [PATCH 2/2] + pre-commit and linting updates --- .cspell/custom-dictionary-workspace.txt | 4 ++++ .pre-commit-config.yaml | 10 +++++----- tcex/__init__.py | 1 + tcex/api/api.py | 1 + tcex/api/tc/tc.py | 1 + tcex/api/tc/util/threat_intel_util.py | 1 + tcex/api/tc/v2/batch/attribute.py | 1 + tcex/api/tc/v2/batch/batch.py | 1 + tcex/api/tc/v2/batch/batch_submit.py | 1 + tcex/api/tc/v2/batch/batch_writer.py | 1 + tcex/api/tc/v2/batch/group.py | 1 + tcex/api/tc/v2/batch/indicator.py | 1 + tcex/api/tc/v2/batch/security_label.py | 1 + tcex/api/tc/v2/batch/tag.py | 1 + tcex/api/tc/v2/datastore/cache.py | 1 + tcex/api/tc/v2/datastore/datastore.py | 1 + tcex/api/tc/v2/metric/metric.py | 1 + tcex/api/tc/v2/notification/notification.py | 1 + tcex/api/tc/v2/threat_intelligence/__init__.py | 1 + .../v2/threat_intelligence/mapping/group/group.py | 1 + .../mapping/group/group_type/adversary.py | 1 + .../mapping/group/group_type/attack_pattern.py | 1 + .../mapping/group/group_type/campaign.py | 1 + .../mapping/group/group_type/course_of_action.py | 1 + .../mapping/group/group_type/document.py | 1 + .../mapping/group/group_type/email.py | 1 + .../mapping/group/group_type/event.py | 1 + .../mapping/group/group_type/incident.py | 1 + .../mapping/group/group_type/intrusion_set.py | 1 + .../mapping/group/group_type/malware.py | 1 + .../mapping/group/group_type/report.py | 1 + .../mapping/group/group_type/signature.py | 1 + .../mapping/group/group_type/tactic.py | 1 + .../mapping/group/group_type/threat.py | 1 + .../mapping/group/group_type/tool.py | 1 + .../mapping/group/group_type/vulnerability.py | 1 + .../mapping/indicator/indicator.py | 1 + .../mapping/indicator/indicator_type/address.py | 1 + .../indicator/indicator_type/email_address.py | 1 + .../mapping/indicator/indicator_type/file.py | 1 + .../mapping/indicator/indicator_type/host.py | 1 + .../mapping/indicator/indicator_type/url.py | 1 + .../tc/v2/threat_intelligence/mapping/mapping.py | 1 + .../api/tc/v2/threat_intelligence/mapping/owner.py | 1 + .../threat_intelligence/mapping/security_label.py | 1 + tcex/api/tc/v2/threat_intelligence/mapping/tag.py | 1 + tcex/api/tc/v2/threat_intelligence/mapping/tags.py | 1 + tcex/api/tc/v2/threat_intelligence/mapping/task.py | 1 + .../tc/v2/threat_intelligence/mapping/victim.py | 1 + .../v2/threat_intelligence/tcex_ti_tc_request.py | 1 + .../v2/threat_intelligence/threat_intelligence.py | 1 + tcex/api/tc/v2/v2.py | 1 + tcex/api/tc/v3/_gen/_gen.py | 1 + tcex/api/tc/v3/_gen/_gen_abc.py | 1 + tcex/api/tc/v3/_gen/_gen_args_abc.py | 1 + tcex/api/tc/v3/_gen/_gen_filter_abc.py | 1 + tcex/api/tc/v3/_gen/_gen_model_abc.py | 1 + tcex/api/tc/v3/_gen/_gen_object_abc.py | 1 + tcex/api/tc/v3/_gen/model/_filter_model.py | 1 + tcex/api/tc/v3/api_endpoints.py | 1 + tcex/api/tc/v3/attributes/attribute_model.py | 1 + tcex/api/tc/v3/case_management/case_management.py | 1 + tcex/api/tc/v3/file_actions/file_action_model.py | 1 + .../v3/file_occurrences/file_occurrence_model.py | 1 + tcex/api/tc/v3/filter_abc.py | 1 + tcex/api/tc/v3/intel_requirement/ir.py | 1 + .../v3/intel_requirements/intel_req_type_model.py | 1 + .../keyword_sections/keyword_section_model.py | 1 + tcex/api/tc/v3/object_abc.py | 1 + tcex/api/tc/v3/object_collection_abc.py | 1 + tcex/api/tc/v3/security/assignee_model.py | 1 + .../tc/v3/security/assignee_user_group_model.py | 1 + tcex/api/tc/v3/security/assignee_user_model.py | 1 + tcex/api/tc/v3/security/security.py | 1 + tcex/api/tc/v3/security/task_assignee_model.py | 1 + tcex/api/tc/v3/tql/tql.py | 1 + tcex/api/tc/v3/tql/tql_operator.py | 1 + tcex/api/tc/v3/tql/tql_type.py | 1 + tcex/app/config | 2 +- tcex/app/decorator/benchmark.py | 1 + tcex/app/decorator/debug.py | 1 + tcex/app/decorator/fail_on_output.py | 1 + tcex/app/decorator/on_exception.py | 1 + tcex/app/decorator/on_success.py | 1 + tcex/app/decorator/output.py | 1 + tcex/app/key_value_store | 2 +- tcex/app/playbook | 2 +- tcex/app/service/api_service.py | 1 + tcex/app/service/common_service.py | 1 + tcex/app/service/common_service_trigger.py | 1 + tcex/app/service/mqtt_message_broker.py | 1 + tcex/app/token/token.py | 1 + tcex/exit/error_code.py | 1 + tcex/exit/exit.py | 1 + tcex/input/field_type/__init__.py | 1 + tcex/input/field_type/binary.py | 1 + tcex/input/field_type/choice.py | 1 + tcex/input/field_type/datetime.py | 1 + tcex/input/field_type/edit_choice.py | 1 + tcex/input/field_type/exception.py | 1 + tcex/input/field_type/integer.py | 1 + tcex/input/field_type/ip_address.py | 1 + tcex/input/field_type/key_value.py | 1 + tcex/input/field_type/sensitive.py | 1 + tcex/input/field_type/string.py | 1 + tcex/input/field_type/tc_entity.py | 1 + tcex/input/field_type/validator.py | 1 + tcex/input/input.py | 1 + tcex/input/model/advanced_request_model.py | 1 + tcex/input/model/api_model.py | 1 + tcex/input/model/batch_model.py | 1 + tcex/input/model/cal_setting_model.py | 1 + tcex/input/model/cert_model.py | 1 + tcex/input/model/create_config_model.py | 1 + tcex/input/model/logging_model.py | 1 + tcex/input/model/organization_model.py | 1 + tcex/input/model/path_model.py | 1 + tcex/input/model/playbook_common_model.py | 1 + tcex/input/model/playbook_model.py | 1 + tcex/input/model/proxy_model.py | 1 + tcex/input/model/service_model.py | 1 + tcex/input/model/smtp_setting_model.py | 1 + tcex/logger/api_handler.py | 1 + tcex/logger/cache_handler.py | 1 + tcex/logger/logger.py | 1 + tcex/logger/rotating_file_handler_custom.py | 1 + tcex/logger/sensitive_filter.py | 1 + tcex/logger/trace_logger.py | 1 + tcex/pleb | 2 +- tcex/registry.py | 1 + tcex/requests_external/__init__.py | 1 + tcex/requests_external/external_session.py | 1 + tcex/requests_external/rate_limit_handler.py | 1 + tcex/requests_external/requests_external.py | 1 + tcex/requests_tc | 2 +- tcex/util | 2 +- .../tc/ti_transform/test_indicator_transform.py | 8 +++++--- tests/api/tc/util/test_util_interface.py | 1 + tests/api/tc/v2/batch/test_attribute_1.py | 1 + tests/api/tc/v2/batch/test_batch.py | 1 + tests/api/tc/v2/batch/test_group_association.py | 1 + tests/api/tc/v2/batch/test_group_interface_1.py | 1 + tests/api/tc/v2/batch/test_group_interface_2.py | 1 + tests/api/tc/v2/batch/test_group_interface_3.py | 1 + .../api/tc/v2/batch/test_indicator_interface_1.py | 1 + tests/api/tc/v2/datastore/mock_post.py | 1 + tests/api/tc/v2/datastore/test_cache.py | 1 + tests/api/tc/v2/datastore/test_datastore.py | 1 + tests/api/tc/v2/datastore/test_datastore_delete.py | 1 + tests/api/tc/v2/datastore/test_datastore_get.py | 1 + tests/api/tc/v2/datastore/test_datastore_put.py | 1 + tests/api/tc/v2/metric/test_metric.py | 1 + .../threat_intelligence/test_address_interface.py | 1 + .../test_adversary_asset_interface.py | 1 + .../test_adversary_interface.py | 1 + .../v2/threat_intelligence/test_asn_interface.py | 1 + .../threat_intelligence/test_campaign_interface.py | 1 + .../v2/threat_intelligence/test_cidr_interface.py | 1 + .../threat_intelligence/test_document_interface.py | 1 + .../test_email_address_interface.py | 1 + .../v2/threat_intelligence/test_email_interface.py | 1 + .../test_email_subject_interface.py | 1 + .../v2/threat_intelligence/test_event_interface.py | 1 + .../v2/threat_intelligence/test_file_interface.py | 1 + .../threat_intelligence/test_hashtag_interface.py | 1 + .../v2/threat_intelligence/test_host_interface.py | 1 + .../threat_intelligence/test_incident_interface.py | 1 + .../test_intrusion_set_interface.py | 1 + .../v2/threat_intelligence/test_mutex_interface.py | 1 + .../threat_intelligence/test_report_interface.py | 1 + .../test_signature_interface.py | 1 + .../v2/threat_intelligence/test_task_interface.py | 1 + .../threat_intelligence/test_threat_interface.py | 1 + .../v2/threat_intelligence/test_url_interface.py | 1 + .../test_user_agent_interface.py | 1 + .../threat_intelligence/test_victim_interface.py | 1 + tests/api/tc/v2/threat_intelligence/ti_helper.py | 1 + .../artifact_types/test_artifact_type_interface.py | 1 + .../api/tc/v3/artifacts/test_artifact_interface.py | 1 + .../test_attribute_types_snippets.py | 1 + .../test_case_attribute_snippets.py | 1 + tests/api/tc/v3/cases/test_case_interface.py | 1 + tests/api/tc/v3/cases/test_case_snippets.py | 1 + .../test_group_attribute_snippets.py | 1 + tests/api/tc/v3/groups/test_group_interface.py | 1 + .../test_indicator_attribute_snippets.py | 1 + .../tc/v3/indicators/test_indicator_interface.py | 1 + .../tc/v3/indicators/test_indicator_snippets.py | 1 + .../test_intel_requirements_interface.py | 1 + tests/api/tc/v3/notes/test_note_interface.py | 1 + .../owner_roles/test_owner_role_snippets.py | 1 + .../tc/v3/security/owners/test_owner_snippets.py | 1 + .../system_roles/test_system_role_snippets.py | 1 + .../user_groups/test_user_group_snippets.py | 1 + .../v3/security/users/test_user_group_snippets.py | 1 + tests/api/tc/v3/tasks/test_task_interface.py | 1 + .../victim_assets/test_victim_assets_snippets.py | 1 + .../test_victim_attribute_snippets.py | 1 + tests/api/tc/v3/victims/test_victim_snippets.py | 1 + .../test_workflow_event_interface.py | 1 + tests/app/config/apps/tcpb/app_1/app_inputs.py | 1 + tests/app/config/copy_ij_file.py | 1 + tests/app/config/copy_lj_file.py | 1 + tests/app/config/test_install_json_model.py | 1 + tests/app/config/test_job_json_model.py | 1 + tests/app/config/test_layout_json_model.py | 1 + tests/app/config/test_permutation.py | 1 + tests/app/config/test_tcex_json_model.py | 1 + tests/app/decorator/test_decorator_benchmark.py | 1 + tests/app/decorator/test_decorator_debug.py | 1 + .../app/decorator/test_decorator_fail_on_output.py | 1 + tests/app/decorator/test_decorator_on_exception.py | 1 + tests/app/decorator/test_decorator_on_success.py | 1 + tests/app/decorator/test_decorator_output.py | 1 + tests/app/playbook/test_advanced_request.py | 1 + tests/app/playbook/test_playbook.py | 1 + tests/app/playbook/test_playbook_binary_type.py | 1 + tests/app/playbook/test_playbook_create.py | 1 + .../playbook/test_playbook_embedded_variable.py | 1 + tests/app/playbook/test_playbook_key_value_api.py | 1 + tests/app/playbook/test_playbook_key_value_type.py | 1 + tests/app/playbook/test_playbook_raw.py | 1 + tests/app/playbook/test_playbook_read.py | 1 + tests/app/playbook/test_playbook_string_type.py | 1 + tests/app/playbook/test_playbook_tc_batch_type.py | 1 + tests/app/playbook/test_playbook_tc_entity_type.py | 1 + tests/app/token_/test_token.py | 1 + tests/exit/test_message_tc.py | 1 + .../advanced_settings/test_advanced_settings.py | 1 + tests/input/field_type/test_field_type_binary.py | 1 + tests/input/field_type/test_field_type_choice.py | 1 + tests/input/field_type/test_field_type_datetime.py | 1 + .../field_type/test_field_type_edit_choice.py | 1 + tests/input/field_type/test_field_type_integer.py | 1 + .../input/field_type/test_field_type_ip_address.py | 14 ++++++-------- .../input/field_type/test_field_type_key_value.py | 1 + .../input/field_type/test_field_type_sensitive.py | 1 + tests/input/field_type/test_field_type_string.py | 1 + tests/input/field_type/test_field_type_tcentity.py | 1 + tests/input/field_type/util.py | 1 + tests/input/test_file_param.py | 1 + tests/input/test_input.py | 1 + tests/logger/test_api_handler.py | 1 + tests/logger/test_logger.py | 1 + tests/mock_app.py | 1 + tests/requests_external/test_rate_limit_handler.py | 1 + tests/requests_external/test_session_external.py | 1 + tests/requests_tc/test_session_tc.py | 1 + tests/util/test_aes_operation.py | 1 + tests/util/test_datetime_operation.py | 1 + tests/util/test_file_operation.py | 1 + tests/util/test_request_to_curl.py | 1 + tests/util/test_string_operation_random_string.py | 1 + tests/util/test_string_operation_snake_case.py | 1 + tests/util/test_string_operation_to_bool.py | 1 + .../util/test_string_operation_truncate_string.py | 1 + tests/util/test_string_operation_wrap_string.py | 1 + tests/util/test_util_find_line_in_code.py | 1 + tests/util/test_util_flatten_list.py | 1 + tests/util/test_util_is_cidr.py | 1 + tests/util/test_util_is_ip.py | 1 + tests/util/test_util_printable_creds.py | 1 + tests/util/test_util_remove_none.py | 1 + tests/util/test_util_standardize_asn.py | 1 + tests/util/test_variable.py | 1 + 265 files changed, 281 insertions(+), 22 deletions(-) diff --git a/.cspell/custom-dictionary-workspace.txt b/.cspell/custom-dictionary-workspace.txt index ebcbbdfe6..7721e4c4c 100644 --- a/.cspell/custom-dictionary-workspace.txt +++ b/.cspell/custom-dictionary-workspace.txt @@ -64,9 +64,11 @@ escalatee escalatees ESUP exitstatus +expref fakeredis feedapiservice fget +fillvalue filterwarnings FIPS firstparty @@ -189,6 +191,7 @@ stmts stringarray Stringdummy strptime +subexpression suborg subtechniques suricata @@ -245,6 +248,7 @@ urlencoding urllib userdata usergroup +Variadict virtualenv walklevel Weaponization diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91982b2cd..521355e3b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -27,7 +27,7 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/bandit - rev: 1.7.4 + rev: 1.7.10 hooks: - id: bandit exclude: | @@ -35,11 +35,11 @@ repos: ^tests/ ) - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v6.2.0 + rev: v8.15.1 hooks: - id: cspell exclude: | @@ -66,7 +66,7 @@ repos: ^tests/ ) - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.18.0 hooks: - id: pyupgrade args: diff --git a/tcex/__init__.py b/tcex/__init__.py index 81e389884..3c0c25abe 100644 --- a/tcex/__init__.py +++ b/tcex/__init__.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # ruff: noqa: F401 # standard library diff --git a/tcex/api/api.py b/tcex/api/api.py index ff0d21da7..1cd7aaf33 100644 --- a/tcex/api/api.py +++ b/tcex/api/api.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from requests import Session # TYPE-CHECKING diff --git a/tcex/api/tc/tc.py b/tcex/api/tc/tc.py index b54b73cdc..f17181e86 100644 --- a/tcex/api/tc/tc.py +++ b/tcex/api/tc/tc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from requests import Session # TYPE-CHECKING diff --git a/tcex/api/tc/util/threat_intel_util.py b/tcex/api/tc/util/threat_intel_util.py index 4b91353de..caa9024e9 100644 --- a/tcex/api/tc/util/threat_intel_util.py +++ b/tcex/api/tc/util/threat_intel_util.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging import re diff --git a/tcex/api/tc/v2/batch/attribute.py b/tcex/api/tc/v2/batch/attribute.py index c46c4c162..2c7b5fd96 100644 --- a/tcex/api/tc/v2/batch/attribute.py +++ b/tcex/api/tc/v2/batch/attribute.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json from collections.abc import Callable diff --git a/tcex/api/tc/v2/batch/batch.py b/tcex/api/tc/v2/batch/batch.py index a28271d66..a964df613 100644 --- a/tcex/api/tc/v2/batch/batch.py +++ b/tcex/api/tc/v2/batch/batch.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import gzip import json diff --git a/tcex/api/tc/v2/batch/batch_submit.py b/tcex/api/tc/v2/batch/batch_submit.py index 876d04812..6158dbc33 100644 --- a/tcex/api/tc/v2/batch/batch_submit.py +++ b/tcex/api/tc/v2/batch/batch_submit.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import gzip import json diff --git a/tcex/api/tc/v2/batch/batch_writer.py b/tcex/api/tc/v2/batch/batch_writer.py index 81d29ed8d..8397bab76 100644 --- a/tcex/api/tc/v2/batch/batch_writer.py +++ b/tcex/api/tc/v2/batch/batch_writer.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import gzip import hashlib diff --git a/tcex/api/tc/v2/batch/group.py b/tcex/api/tc/v2/batch/group.py index bc05047e5..12cfcf9ea 100644 --- a/tcex/api/tc/v2/batch/group.py +++ b/tcex/api/tc/v2/batch/group.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import uuid diff --git a/tcex/api/tc/v2/batch/indicator.py b/tcex/api/tc/v2/batch/indicator.py index 8a19e4c5d..a2d41e0da 100644 --- a/tcex/api/tc/v2/batch/indicator.py +++ b/tcex/api/tc/v2/batch/indicator.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import uuid diff --git a/tcex/api/tc/v2/batch/security_label.py b/tcex/api/tc/v2/batch/security_label.py index 1b176ebc2..9e40e5727 100644 --- a/tcex/api/tc/v2/batch/security_label.py +++ b/tcex/api/tc/v2/batch/security_label.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json diff --git a/tcex/api/tc/v2/batch/tag.py b/tcex/api/tc/v2/batch/tag.py index 6231c8550..41b70758f 100644 --- a/tcex/api/tc/v2/batch/tag.py +++ b/tcex/api/tc/v2/batch/tag.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json from collections.abc import Callable diff --git a/tcex/api/tc/v2/datastore/cache.py b/tcex/api/tc/v2/datastore/cache.py index e45c4777e..e7a20b217 100644 --- a/tcex/api/tc/v2/datastore/cache.py +++ b/tcex/api/tc/v2/datastore/cache.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from collections.abc import Callable diff --git a/tcex/api/tc/v2/datastore/datastore.py b/tcex/api/tc/v2/datastore/datastore.py index 450200785..9c2141467 100644 --- a/tcex/api/tc/v2/datastore/datastore.py +++ b/tcex/api/tc/v2/datastore/datastore.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging diff --git a/tcex/api/tc/v2/metric/metric.py b/tcex/api/tc/v2/metric/metric.py index 21df6816c..191c3efcc 100644 --- a/tcex/api/tc/v2/metric/metric.py +++ b/tcex/api/tc/v2/metric/metric.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging diff --git a/tcex/api/tc/v2/notification/notification.py b/tcex/api/tc/v2/notification/notification.py index a29267e28..acdb997e8 100644 --- a/tcex/api/tc/v2/notification/notification.py +++ b/tcex/api/tc/v2/notification/notification.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import logging diff --git a/tcex/api/tc/v2/threat_intelligence/__init__.py b/tcex/api/tc/v2/threat_intelligence/__init__.py index 8ca4c5ece..09601a85b 100644 --- a/tcex/api/tc/v2/threat_intelligence/__init__.py +++ b/tcex/api/tc/v2/threat_intelligence/__init__.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + from .threat_intelligence import ThreatIntelligence __all__ = ['ThreatIntelligence'] diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py index 7917010a7..29db2188e 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING from urllib.parse import quote_plus diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py index 73120c8cb..356b71d72 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py index ca6718f13..2a23ccf32 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py index d0b3dd4fe..5f6b89f53 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py index 779672c14..81460b709 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py index cc4c4cb85..4a731d82c 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py index 8685483eb..862e7cffe 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py index 40f82ea31..032b8949d 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py index d9cd9f771..8cd9ef79f 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py index 5f01ae909..798e3d4d7 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py index 38354c2af..0b2f7f420 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py index 6da7a12e9..33d0a6460 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py index 96fb85604..93bd03d98 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py index 84c788670..0fc7a6f2d 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py index f08412c6a..d07ef8189 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py index 4e6d6deff..bdcc33c02 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py index 2a3b23150..cc8c9c5d9 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py index 80bea29d4..22ecc3499 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py index 1ddb7ecda..c42698389 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py index 498bd6909..1fa4b96e1 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py index 28a7b8461..c3d4e9e72 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py index 17a23d049..3a993bddc 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING from urllib.parse import quote_plus diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py index 4eecfa7bd..5af918914 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING from urllib.parse import quote_plus diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py b/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py index 7bb687f65..2780f4c58 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import logging diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/owner.py b/tcex/api/tc/v2/threat_intelligence/mapping/owner.py index 35dbea191..3bfdd0019 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/owner.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py b/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py index d104b0c4f..a2ed9509d 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/tag.py b/tcex/api/tc/v2/threat_intelligence/mapping/tag.py index fd6c95075..ba0d61c9d 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/tag.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/tags.py b/tcex/api/tc/v2/threat_intelligence/mapping/tags.py index c8ebfefe2..f0236d504 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/tags.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/task.py b/tcex/api/tc/v2/threat_intelligence/mapping/task.py index d7afbaee1..74a11f77d 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/task.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/task.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING from urllib.parse import quote_plus diff --git a/tcex/api/tc/v2/threat_intelligence/mapping/victim.py b/tcex/api/tc/v2/threat_intelligence/mapping/victim.py index 88b115c5f..450079c3d 100644 --- a/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +++ b/tcex/api/tc/v2/threat_intelligence/mapping/victim.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py b/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py index 38bd306aa..e1a289da0 100644 --- a/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +++ b/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import hashlib import logging diff --git a/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py b/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py index b45e61a98..97ecc97db 100644 --- a/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +++ b/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from functools import lru_cache diff --git a/tcex/api/tc/v2/v2.py b/tcex/api/tc/v2/v2.py index a8380b47c..933b6706b 100644 --- a/tcex/api/tc/v2/v2.py +++ b/tcex/api/tc/v2/v2.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from requests import Session # TYPE-CHECKING diff --git a/tcex/api/tc/v3/_gen/_gen.py b/tcex/api/tc/v3/_gen/_gen.py index ef5569dd4..a8a8dd096 100644 --- a/tcex/api/tc/v3/_gen/_gen.py +++ b/tcex/api/tc/v3/_gen/_gen.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from enum import Enum diff --git a/tcex/api/tc/v3/_gen/_gen_abc.py b/tcex/api/tc/v3/_gen/_gen_abc.py index a1bf80ab5..f2274c076 100644 --- a/tcex/api/tc/v3/_gen/_gen_abc.py +++ b/tcex/api/tc/v3/_gen/_gen_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import os diff --git a/tcex/api/tc/v3/_gen/_gen_args_abc.py b/tcex/api/tc/v3/_gen/_gen_args_abc.py index 97beafa67..d68b57bf3 100644 --- a/tcex/api/tc/v3/_gen/_gen_args_abc.py +++ b/tcex/api/tc/v3/_gen/_gen_args_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import importlib from abc import ABC diff --git a/tcex/api/tc/v3/_gen/_gen_filter_abc.py b/tcex/api/tc/v3/_gen/_gen_filter_abc.py index b2f415da2..1bdd7299b 100644 --- a/tcex/api/tc/v3/_gen/_gen_filter_abc.py +++ b/tcex/api/tc/v3/_gen/_gen_filter_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from abc import ABC from collections.abc import Generator diff --git a/tcex/api/tc/v3/_gen/_gen_model_abc.py b/tcex/api/tc/v3/_gen/_gen_model_abc.py index 66e0a2e92..4bc7aa2b5 100644 --- a/tcex/api/tc/v3/_gen/_gen_model_abc.py +++ b/tcex/api/tc/v3/_gen/_gen_model_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from abc import ABC from textwrap import TextWrapper diff --git a/tcex/api/tc/v3/_gen/_gen_object_abc.py b/tcex/api/tc/v3/_gen/_gen_object_abc.py index 83d860375..cecb7bdc8 100644 --- a/tcex/api/tc/v3/_gen/_gen_object_abc.py +++ b/tcex/api/tc/v3/_gen/_gen_object_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from abc import ABC diff --git a/tcex/api/tc/v3/_gen/model/_filter_model.py b/tcex/api/tc/v3/_gen/model/_filter_model.py index 20315619d..e7add03e0 100644 --- a/tcex/api/tc/v3/_gen/model/_filter_model.py +++ b/tcex/api/tc/v3/_gen/model/_filter_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Extra, Field, validator diff --git a/tcex/api/tc/v3/api_endpoints.py b/tcex/api/tc/v3/api_endpoints.py index 96b8cac45..531dcea4a 100644 --- a/tcex/api/tc/v3/api_endpoints.py +++ b/tcex/api/tc/v3/api_endpoints.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from enum import Enum diff --git a/tcex/api/tc/v3/attributes/attribute_model.py b/tcex/api/tc/v3/attributes/attribute_model.py index 28bfe8bb6..406255a0d 100644 --- a/tcex/api/tc/v3/attributes/attribute_model.py +++ b/tcex/api/tc/v3/attributes/attribute_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from datetime import datetime diff --git a/tcex/api/tc/v3/case_management/case_management.py b/tcex/api/tc/v3/case_management/case_management.py index abde38359..b9ed5d65a 100644 --- a/tcex/api/tc/v3/case_management/case_management.py +++ b/tcex/api/tc/v3/case_management/case_management.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from requests import Session diff --git a/tcex/api/tc/v3/file_actions/file_action_model.py b/tcex/api/tc/v3/file_actions/file_action_model.py index 03f92a9fe..348b22d77 100644 --- a/tcex/api/tc/v3/file_actions/file_action_model.py +++ b/tcex/api/tc/v3/file_actions/file_action_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-member,no-self-argument,wrong-import-position # third-party diff --git a/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py b/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py index 4be593eba..9fdfd6b78 100644 --- a/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +++ b/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from datetime import datetime diff --git a/tcex/api/tc/v3/filter_abc.py b/tcex/api/tc/v3/filter_abc.py index 3a18b8bdc..3b5dc8289 100644 --- a/tcex/api/tc/v3/filter_abc.py +++ b/tcex/api/tc/v3/filter_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from abc import ABC from typing import TYPE_CHECKING diff --git a/tcex/api/tc/v3/intel_requirement/ir.py b/tcex/api/tc/v3/intel_requirement/ir.py index 86ec22f8d..fa319d879 100644 --- a/tcex/api/tc/v3/intel_requirement/ir.py +++ b/tcex/api/tc/v3/intel_requirement/ir.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from requests import Session diff --git a/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py b/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py index e818ee0bc..cb73fa63d 100644 --- a/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +++ b/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-member,no-self-argument,wrong-import-position # third-party diff --git a/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py b/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py index f8c5f52e2..5d48377b4 100644 --- a/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +++ b/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-member,no-self-argument,wrong-import-position # third-party diff --git a/tcex/api/tc/v3/object_abc.py b/tcex/api/tc/v3/object_abc.py index d6051f7a3..a869771d6 100644 --- a/tcex/api/tc/v3/object_abc.py +++ b/tcex/api/tc/v3/object_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from abc import ABC diff --git a/tcex/api/tc/v3/object_collection_abc.py b/tcex/api/tc/v3/object_collection_abc.py index 434ba6533..c12f6ee18 100644 --- a/tcex/api/tc/v3/object_collection_abc.py +++ b/tcex/api/tc/v3/object_collection_abc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from abc import ABC diff --git a/tcex/api/tc/v3/security/assignee_model.py b/tcex/api/tc/v3/security/assignee_model.py index 3cad24df1..d8b822f75 100644 --- a/tcex/api/tc/v3/security/assignee_model.py +++ b/tcex/api/tc/v3/security/assignee_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-member,no-self-argument,wrong-import-position # third-party diff --git a/tcex/api/tc/v3/security/assignee_user_group_model.py b/tcex/api/tc/v3/security/assignee_user_group_model.py index 80de543d5..593886319 100644 --- a/tcex/api/tc/v3/security/assignee_user_group_model.py +++ b/tcex/api/tc/v3/security/assignee_user_group_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-member,no-self-argument,wrong-import-position # third-party diff --git a/tcex/api/tc/v3/security/assignee_user_model.py b/tcex/api/tc/v3/security/assignee_user_model.py index 3013df24a..925e86815 100644 --- a/tcex/api/tc/v3/security/assignee_user_model.py +++ b/tcex/api/tc/v3/security/assignee_user_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-member,no-self-argument,wrong-import-position # third-party diff --git a/tcex/api/tc/v3/security/security.py b/tcex/api/tc/v3/security/security.py index 53c67ee9e..9c9e42406 100644 --- a/tcex/api/tc/v3/security/security.py +++ b/tcex/api/tc/v3/security/security.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from requests import Session diff --git a/tcex/api/tc/v3/security/task_assignee_model.py b/tcex/api/tc/v3/security/task_assignee_model.py index f7dfd3cf1..47063c9f2 100644 --- a/tcex/api/tc/v3/security/task_assignee_model.py +++ b/tcex/api/tc/v3/security/task_assignee_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-member,no-self-argument,wrong-import-position # standard library from datetime import datetime diff --git a/tcex/api/tc/v3/tql/tql.py b/tcex/api/tc/v3/tql/tql.py index 259d8da38..56eb5145f 100644 --- a/tcex/api/tc/v3/tql/tql.py +++ b/tcex/api/tc/v3/tql/tql.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from datetime import datetime from enum import Enum diff --git a/tcex/api/tc/v3/tql/tql_operator.py b/tcex/api/tc/v3/tql/tql_operator.py index 748b666f5..84de200b2 100644 --- a/tcex/api/tc/v3/tql/tql_operator.py +++ b/tcex/api/tc/v3/tql/tql_operator.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from enum import Enum, unique diff --git a/tcex/api/tc/v3/tql/tql_type.py b/tcex/api/tc/v3/tql/tql_type.py index 81d73e563..c424e8678 100644 --- a/tcex/api/tc/v3/tql/tql_type.py +++ b/tcex/api/tc/v3/tql/tql_type.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from enum import Enum, unique diff --git a/tcex/app/config b/tcex/app/config index 25acda5ae..aca32db5d 160000 --- a/tcex/app/config +++ b/tcex/app/config @@ -1 +1 @@ -Subproject commit 25acda5aea23e7e455bc0d1cd33504003193baa6 +Subproject commit aca32db5d45f2472e284c0e4a3e974badd5007fb diff --git a/tcex/app/decorator/benchmark.py b/tcex/app/decorator/benchmark.py index e95505256..3b90f7a0a 100644 --- a/tcex/app/decorator/benchmark.py +++ b/tcex/app/decorator/benchmark.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import datetime import logging diff --git a/tcex/app/decorator/debug.py b/tcex/app/decorator/debug.py index af9b14a16..e6a407cf0 100644 --- a/tcex/app/decorator/debug.py +++ b/tcex/app/decorator/debug.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any, cast diff --git a/tcex/app/decorator/fail_on_output.py b/tcex/app/decorator/fail_on_output.py index 145b14293..18c5b699e 100644 --- a/tcex/app/decorator/fail_on_output.py +++ b/tcex/app/decorator/fail_on_output.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any, cast diff --git a/tcex/app/decorator/on_exception.py b/tcex/app/decorator/on_exception.py index 96304dff9..6bf58a837 100644 --- a/tcex/app/decorator/on_exception.py +++ b/tcex/app/decorator/on_exception.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import traceback from collections.abc import Callable diff --git a/tcex/app/decorator/on_success.py b/tcex/app/decorator/on_success.py index 89c66b92d..06bb94fda 100644 --- a/tcex/app/decorator/on_success.py +++ b/tcex/app/decorator/on_success.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any diff --git a/tcex/app/decorator/output.py b/tcex/app/decorator/output.py index 354868d48..651d58672 100644 --- a/tcex/app/decorator/output.py +++ b/tcex/app/decorator/output.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any diff --git a/tcex/app/key_value_store b/tcex/app/key_value_store index 76b469431..8bef27c11 160000 --- a/tcex/app/key_value_store +++ b/tcex/app/key_value_store @@ -1 +1 @@ -Subproject commit 76b469431cc689fbfb6671a80a9cd43284133309 +Subproject commit 8bef27c1127b580ff6047c9c243855c4a1c4c771 diff --git a/tcex/app/playbook b/tcex/app/playbook index a5823e4a4..f9993626a 160000 --- a/tcex/app/playbook +++ b/tcex/app/playbook @@ -1 +1 @@ -Subproject commit a5823e4a49cf21a8968759815459aef7008fa5e7 +Subproject commit f9993626a0a20921a937e26b76a6f86e1355be6e diff --git a/tcex/app/service/api_service.py b/tcex/app/service/api_service.py index 74bbf5bb7..d99e8b091 100644 --- a/tcex/app/service/api_service.py +++ b/tcex/app/service/api_service.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import concurrent.futures import json diff --git a/tcex/app/service/common_service.py b/tcex/app/service/common_service.py index 1cb5389fe..b1ec4e093 100644 --- a/tcex/app/service/common_service.py +++ b/tcex/app/service/common_service.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import logging diff --git a/tcex/app/service/common_service_trigger.py b/tcex/app/service/common_service_trigger.py index 1a6094caf..ec6531dbb 100644 --- a/tcex/app/service/common_service_trigger.py +++ b/tcex/app/service/common_service_trigger.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import os diff --git a/tcex/app/service/mqtt_message_broker.py b/tcex/app/service/mqtt_message_broker.py index 46e4cd029..c289585ad 100644 --- a/tcex/app/service/mqtt_message_broker.py +++ b/tcex/app/service/mqtt_message_broker.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging import ssl diff --git a/tcex/app/token/token.py b/tcex/app/token/token.py index 4635092ab..673885fca 100644 --- a/tcex/app/token/token.py +++ b/tcex/app/token/token.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging import os diff --git a/tcex/exit/error_code.py b/tcex/exit/error_code.py index 513db7550..34cd9ed5a 100644 --- a/tcex/exit/error_code.py +++ b/tcex/exit/error_code.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging diff --git a/tcex/exit/exit.py b/tcex/exit/exit.py index c7225b757..ee187916a 100644 --- a/tcex/exit/exit.py +++ b/tcex/exit/exit.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging import os diff --git a/tcex/input/field_type/__init__.py b/tcex/input/field_type/__init__.py index fb39c63ce..fceb12d75 100644 --- a/tcex/input/field_type/__init__.py +++ b/tcex/input/field_type/__init__.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.input.field_type.binary import Binary, binary from tcex.input.field_type.case_management_entity import ( diff --git a/tcex/input/field_type/binary.py b/tcex/input/field_type/binary.py index 75584cd8f..0524ec2c3 100644 --- a/tcex/input/field_type/binary.py +++ b/tcex/input/field_type/binary.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Generator diff --git a/tcex/input/field_type/choice.py b/tcex/input/field_type/choice.py index a7f8d415e..eea15251a 100644 --- a/tcex/input/field_type/choice.py +++ b/tcex/input/field_type/choice.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Generator diff --git a/tcex/input/field_type/datetime.py b/tcex/input/field_type/datetime.py index aa0570e3b..28b26b1c1 100644 --- a/tcex/input/field_type/datetime.py +++ b/tcex/input/field_type/datetime.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Generator from typing import Any diff --git a/tcex/input/field_type/edit_choice.py b/tcex/input/field_type/edit_choice.py index 050fc9223..959532cf6 100644 --- a/tcex/input/field_type/edit_choice.py +++ b/tcex/input/field_type/edit_choice.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Generator diff --git a/tcex/input/field_type/exception.py b/tcex/input/field_type/exception.py index 79b5eddf4..5f64c9649 100644 --- a/tcex/input/field_type/exception.py +++ b/tcex/input/field_type/exception.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging diff --git a/tcex/input/field_type/integer.py b/tcex/input/field_type/integer.py index 424580469..b80ef2665 100644 --- a/tcex/input/field_type/integer.py +++ b/tcex/input/field_type/integer.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Generator from typing import Any diff --git a/tcex/input/field_type/ip_address.py b/tcex/input/field_type/ip_address.py index 6d154aca3..351abc8a0 100644 --- a/tcex/input/field_type/ip_address.py +++ b/tcex/input/field_type/ip_address.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import ipaddress from collections.abc import Generator diff --git a/tcex/input/field_type/key_value.py b/tcex/input/field_type/key_value.py index a9e0437a1..b2697d8e3 100644 --- a/tcex/input/field_type/key_value.py +++ b/tcex/input/field_type/key_value.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import ForwardRef diff --git a/tcex/input/field_type/sensitive.py b/tcex/input/field_type/sensitive.py index 4ca1a5c22..341505dd9 100644 --- a/tcex/input/field_type/sensitive.py +++ b/tcex/input/field_type/sensitive.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from collections.abc import Generator diff --git a/tcex/input/field_type/string.py b/tcex/input/field_type/string.py index 0eae5b25d..c8dc6459b 100644 --- a/tcex/input/field_type/string.py +++ b/tcex/input/field_type/string.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import re from collections.abc import Generator diff --git a/tcex/input/field_type/tc_entity.py b/tcex/input/field_type/tc_entity.py index 0c9cdef85..276a741d7 100644 --- a/tcex/input/field_type/tc_entity.py +++ b/tcex/input/field_type/tc_entity.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Extra, validator from pydantic.fields import ModelField # TYPE-CHECKING diff --git a/tcex/input/field_type/validator.py b/tcex/input/field_type/validator.py index 34184ea45..a9469df85 100644 --- a/tcex/input/field_type/validator.py +++ b/tcex/input/field_type/validator.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import operator from collections.abc import Callable diff --git a/tcex/input/input.py b/tcex/input/input.py index 9c3b6c671..67ecc69ed 100644 --- a/tcex/input/input.py +++ b/tcex/input/input.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import logging diff --git a/tcex/input/model/advanced_request_model.py b/tcex/input/model/advanced_request_model.py index b89fdee16..a889871c2 100644 --- a/tcex/input/model/advanced_request_model.py +++ b/tcex/input/model/advanced_request_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-self-argument,wrong-import-position # standard library from typing import Any diff --git a/tcex/input/model/api_model.py b/tcex/input/model/api_model.py index 1f20aea77..5d5fea855 100644 --- a/tcex/input/model/api_model.py +++ b/tcex/input/model/api_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-self-argument # third-party diff --git a/tcex/input/model/batch_model.py b/tcex/input/model/batch_model.py index f7d1377f4..0431bc2b1 100644 --- a/tcex/input/model/batch_model.py +++ b/tcex/input/model/batch_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/cal_setting_model.py b/tcex/input/model/cal_setting_model.py index 532ac0a3e..d79261d7d 100644 --- a/tcex/input/model/cal_setting_model.py +++ b/tcex/input/model/cal_setting_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/cert_model.py b/tcex/input/model/cert_model.py index 841b10fef..bbac727b6 100644 --- a/tcex/input/model/cert_model.py +++ b/tcex/input/model/cert_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/create_config_model.py b/tcex/input/model/create_config_model.py index b13dd7eba..72cd801d5 100644 --- a/tcex/input/model/create_config_model.py +++ b/tcex/input/model/create_config_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-self-argument # standard library from typing import Any diff --git a/tcex/input/model/logging_model.py b/tcex/input/model/logging_model.py index cd62c3b61..b47ee7fea 100644 --- a/tcex/input/model/logging_model.py +++ b/tcex/input/model/logging_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/organization_model.py b/tcex/input/model/organization_model.py index c76c0ec2f..07c25a458 100644 --- a/tcex/input/model/organization_model.py +++ b/tcex/input/model/organization_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/path_model.py b/tcex/input/model/path_model.py index 5853fc8c8..5b5622809 100644 --- a/tcex/input/model/path_model.py +++ b/tcex/input/model/path_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import tempfile from pathlib import Path diff --git a/tcex/input/model/playbook_common_model.py b/tcex/input/model/playbook_common_model.py index 7dc36d71a..73ccfa88f 100644 --- a/tcex/input/model/playbook_common_model.py +++ b/tcex/input/model/playbook_common_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/playbook_model.py b/tcex/input/model/playbook_model.py index 9f41bf5d7..649cbde50 100644 --- a/tcex/input/model/playbook_model.py +++ b/tcex/input/model/playbook_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field, validator diff --git a/tcex/input/model/proxy_model.py b/tcex/input/model/proxy_model.py index 8b33afba4..4a1c0f4f7 100644 --- a/tcex/input/model/proxy_model.py +++ b/tcex/input/model/proxy_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/service_model.py b/tcex/input/model/service_model.py index 89943970e..b518925bf 100644 --- a/tcex/input/model/service_model.py +++ b/tcex/input/model/service_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/input/model/smtp_setting_model.py b/tcex/input/model/smtp_setting_model.py index 665d00fcd..86601ae9b 100644 --- a/tcex/input/model/smtp_setting_model.py +++ b/tcex/input/model/smtp_setting_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from pydantic import BaseModel, Field diff --git a/tcex/logger/api_handler.py b/tcex/logger/api_handler.py index a3cc6a763..7f404d0f6 100644 --- a/tcex/logger/api_handler.py +++ b/tcex/logger/api_handler.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging import threading diff --git a/tcex/logger/cache_handler.py b/tcex/logger/cache_handler.py index 193b3c800..d818fca10 100644 --- a/tcex/logger/cache_handler.py +++ b/tcex/logger/cache_handler.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging diff --git a/tcex/logger/logger.py b/tcex/logger/logger.py index aec462b92..12fc32ea0 100644 --- a/tcex/logger/logger.py +++ b/tcex/logger/logger.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging import os diff --git a/tcex/logger/rotating_file_handler_custom.py b/tcex/logger/rotating_file_handler_custom.py index 1f9c3da87..6da3211c8 100644 --- a/tcex/logger/rotating_file_handler_custom.py +++ b/tcex/logger/rotating_file_handler_custom.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import gzip import os diff --git a/tcex/logger/sensitive_filter.py b/tcex/logger/sensitive_filter.py index 45407e241..39b94e6e6 100644 --- a/tcex/logger/sensitive_filter.py +++ b/tcex/logger/sensitive_filter.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from threading import Lock diff --git a/tcex/logger/trace_logger.py b/tcex/logger/trace_logger.py index 740d7bd5b..0c4ec5237 100644 --- a/tcex/logger/trace_logger.py +++ b/tcex/logger/trace_logger.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from inspect import getframeinfo, stack diff --git a/tcex/pleb b/tcex/pleb index 9d0dfea97..d110a48e0 160000 --- a/tcex/pleb +++ b/tcex/pleb @@ -1 +1 @@ -Subproject commit 9d0dfea97c6103f448f81cc38555d823be6e49bf +Subproject commit d110a48e0cfeb8be486df1e6e56c86d2f331b2c2 diff --git a/tcex/registry.py b/tcex/registry.py index 4597f346a..b617339f1 100644 --- a/tcex/registry.py +++ b/tcex/registry.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import functools from collections.abc import Callable, Container diff --git a/tcex/requests_external/__init__.py b/tcex/requests_external/__init__.py index 5cfa2ce0d..de6757806 100644 --- a/tcex/requests_external/__init__.py +++ b/tcex/requests_external/__init__.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.requests_external.external_session import ExternalSession from tcex.requests_external.requests_external import RequestsExternal diff --git a/tcex/requests_external/external_session.py b/tcex/requests_external/external_session.py index a03837786..7993f6b62 100644 --- a/tcex/requests_external/external_session.py +++ b/tcex/requests_external/external_session.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging import time diff --git a/tcex/requests_external/rate_limit_handler.py b/tcex/requests_external/rate_limit_handler.py index 888655e73..5cc49a100 100644 --- a/tcex/requests_external/rate_limit_handler.py +++ b/tcex/requests_external/rate_limit_handler.py @@ -2,6 +2,7 @@ See https://tools.ietf.org/id/draft-polli-ratelimit-headers-00.html for implementation details. """ + # standard library import time diff --git a/tcex/requests_external/requests_external.py b/tcex/requests_external/requests_external.py index d75665915..efe062e5e 100644 --- a/tcex/requests_external/requests_external.py +++ b/tcex/requests_external/requests_external.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from functools import cached_property diff --git a/tcex/requests_tc b/tcex/requests_tc index 574dfb160..d79463fdd 160000 --- a/tcex/requests_tc +++ b/tcex/requests_tc @@ -1 +1 @@ -Subproject commit 574dfb160c97af0cb4a0ba5e21b27dc6332914dc +Subproject commit d79463fdd3797ddaa5943eaaa45d723a1951a8c8 diff --git a/tcex/util b/tcex/util index b77215bd7..fd74a0c2d 160000 --- a/tcex/util +++ b/tcex/util @@ -1 +1 @@ -Subproject commit b77215bd736650b74f0ec5663df2dedb1dc84083 +Subproject commit fd74a0c2dc6ef55091e9fdcbbd98805179feab57 diff --git a/tests/api/tc/ti_transform/test_indicator_transform.py b/tests/api/tc/ti_transform/test_indicator_transform.py index 4355f4929..f9d074b42 100644 --- a/tests/api/tc/ti_transform/test_indicator_transform.py +++ b/tests/api/tc/ti_transform/test_indicator_transform.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json from pathlib import Path @@ -226,9 +227,10 @@ def transform(tcex: TcEx) -> IndicatorTransformModel: def test_indicators_regression(tcex: TcEx): """Test large data set to ensure results have not changed.""" current_path = Path(__file__).parent - with open(current_path / 'data' / 'input_indicators.json') as input_, open( - current_path / 'data' / 'transformed_indicators.json' - ) as output: + with ( + open(current_path / 'data' / 'input_indicators.json') as input_, + open(current_path / 'data' / 'transformed_indicators.json') as output, + ): transforms = tcex.api.tc.ti_transforms(json.load(input_), [transform(tcex)]) tcex.log.warning(json.dumps(transforms.batch)) assert not deepdiff.DeepDiff(transforms.batch, json.load(output)) diff --git a/tests/api/tc/util/test_util_interface.py b/tests/api/tc/util/test_util_interface.py index ab77ad58e..1326c1b7a 100644 --- a/tests/api/tc/util/test_util_interface.py +++ b/tests/api/tc/util/test_util_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/api/tc/v2/batch/test_attribute_1.py b/tests/api/tc/v2/batch/test_attribute_1.py index f7ab13fe2..669968404 100644 --- a/tests/api/tc/v2/batch/test_attribute_1.py +++ b/tests/api/tc/v2/batch/test_attribute_1.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/api/tc/v2/batch/test_batch.py b/tests/api/tc/v2/batch/test_batch.py index b0ecb4840..9d07e0ee2 100644 --- a/tests/api/tc/v2/batch/test_batch.py +++ b/tests/api/tc/v2/batch/test_batch.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from datetime import datetime, timedelta diff --git a/tests/api/tc/v2/batch/test_group_association.py b/tests/api/tc/v2/batch/test_group_association.py index 162cdfe21..fc47a35eb 100644 --- a/tests/api/tc/v2/batch/test_group_association.py +++ b/tests/api/tc/v2/batch/test_group_association.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import cast diff --git a/tests/api/tc/v2/batch/test_group_interface_1.py b/tests/api/tc/v2/batch/test_group_interface_1.py index 1cd5855f8..162ebf690 100644 --- a/tests/api/tc/v2/batch/test_group_interface_1.py +++ b/tests/api/tc/v2/batch/test_group_interface_1.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/api/tc/v2/batch/test_group_interface_2.py b/tests/api/tc/v2/batch/test_group_interface_2.py index b7b54e8f4..7acaef425 100644 --- a/tests/api/tc/v2/batch/test_group_interface_2.py +++ b/tests/api/tc/v2/batch/test_group_interface_2.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import cast diff --git a/tests/api/tc/v2/batch/test_group_interface_3.py b/tests/api/tc/v2/batch/test_group_interface_3.py index 88b41e2ac..d5144e5e4 100644 --- a/tests/api/tc/v2/batch/test_group_interface_3.py +++ b/tests/api/tc/v2/batch/test_group_interface_3.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/api/tc/v2/batch/test_indicator_interface_1.py b/tests/api/tc/v2/batch/test_indicator_interface_1.py index 4884b2035..fb68b8a6d 100644 --- a/tests/api/tc/v2/batch/test_indicator_interface_1.py +++ b/tests/api/tc/v2/batch/test_indicator_interface_1.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import cast diff --git a/tests/api/tc/v2/datastore/mock_post.py b/tests/api/tc/v2/datastore/mock_post.py index 3a2d62340..ece2e06fa 100644 --- a/tests/api/tc/v2/datastore/mock_post.py +++ b/tests/api/tc/v2/datastore/mock_post.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json from typing import Any diff --git a/tests/api/tc/v2/datastore/test_cache.py b/tests/api/tc/v2/datastore/test_cache.py index 09b1e40b3..2a74b365d 100644 --- a/tests/api/tc/v2/datastore/test_cache.py +++ b/tests/api/tc/v2/datastore/test_cache.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import time diff --git a/tests/api/tc/v2/datastore/test_datastore.py b/tests/api/tc/v2/datastore/test_datastore.py index a795d1dad..7176e002d 100644 --- a/tests/api/tc/v2/datastore/test_datastore.py +++ b/tests/api/tc/v2/datastore/test_datastore.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import uuid diff --git a/tests/api/tc/v2/datastore/test_datastore_delete.py b/tests/api/tc/v2/datastore/test_datastore_delete.py index f7e570e6a..115460ef7 100644 --- a/tests/api/tc/v2/datastore/test_datastore_delete.py +++ b/tests/api/tc/v2/datastore/test_datastore_delete.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from _pytest.monkeypatch import MonkeyPatch diff --git a/tests/api/tc/v2/datastore/test_datastore_get.py b/tests/api/tc/v2/datastore/test_datastore_get.py index d6379efb1..17f9d3c6a 100644 --- a/tests/api/tc/v2/datastore/test_datastore_get.py +++ b/tests/api/tc/v2/datastore/test_datastore_get.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from _pytest.monkeypatch import MonkeyPatch diff --git a/tests/api/tc/v2/datastore/test_datastore_put.py b/tests/api/tc/v2/datastore/test_datastore_put.py index 057127ee2..616f9d2fd 100644 --- a/tests/api/tc/v2/datastore/test_datastore_put.py +++ b/tests/api/tc/v2/datastore/test_datastore_put.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party from _pytest.monkeypatch import MonkeyPatch diff --git a/tests/api/tc/v2/metric/test_metric.py b/tests/api/tc/v2/metric/test_metric.py index cd3bf7066..fb82bea40 100644 --- a/tests/api/tc/v2/metric/test_metric.py +++ b/tests/api/tc/v2/metric/test_metric.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import uuid diff --git a/tests/api/tc/v2/threat_intelligence/test_address_interface.py b/tests/api/tc/v2/threat_intelligence/test_address_interface.py index 00f1a59bc..e064a7753 100644 --- a/tests/api/tc/v2/threat_intelligence/test_address_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_address_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from datetime import datetime, timedelta diff --git a/tests/api/tc/v2/threat_intelligence/test_adversary_asset_interface.py b/tests/api/tc/v2/threat_intelligence/test_adversary_asset_interface.py index 928e568db..e8a1a49fd 100644 --- a/tests/api/tc/v2/threat_intelligence/test_adversary_asset_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_adversary_asset_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os import random diff --git a/tests/api/tc/v2/threat_intelligence/test_adversary_interface.py b/tests/api/tc/v2/threat_intelligence/test_adversary_interface.py index d3d2ebf6e..174bea65f 100644 --- a/tests/api/tc/v2/threat_intelligence/test_adversary_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_adversary_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_asn_interface.py b/tests/api/tc/v2/threat_intelligence/test_asn_interface.py index 65178e97d..2051371df 100644 --- a/tests/api/tc/v2/threat_intelligence/test_asn_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_asn_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_campaign_interface.py b/tests/api/tc/v2/threat_intelligence/test_campaign_interface.py index f81b34f72..5d40b39cd 100644 --- a/tests/api/tc/v2/threat_intelligence/test_campaign_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_campaign_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from datetime import datetime, timedelta diff --git a/tests/api/tc/v2/threat_intelligence/test_cidr_interface.py b/tests/api/tc/v2/threat_intelligence/test_cidr_interface.py index 8b6c0b596..60280519f 100644 --- a/tests/api/tc/v2/threat_intelligence/test_cidr_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_cidr_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_document_interface.py b/tests/api/tc/v2/threat_intelligence/test_document_interface.py index 72540a1d9..aa7d15684 100644 --- a/tests/api/tc/v2/threat_intelligence/test_document_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_document_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os import time diff --git a/tests/api/tc/v2/threat_intelligence/test_email_address_interface.py b/tests/api/tc/v2/threat_intelligence/test_email_address_interface.py index 7d25065cc..e020a8759 100644 --- a/tests/api/tc/v2/threat_intelligence/test_email_address_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_email_address_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_email_interface.py b/tests/api/tc/v2/threat_intelligence/test_email_interface.py index db407e3cb..00b68689a 100644 --- a/tests/api/tc/v2/threat_intelligence/test_email_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_email_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os diff --git a/tests/api/tc/v2/threat_intelligence/test_email_subject_interface.py b/tests/api/tc/v2/threat_intelligence/test_email_subject_interface.py index a351dbc96..66511d3ae 100644 --- a/tests/api/tc/v2/threat_intelligence/test_email_subject_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_email_subject_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_event_interface.py b/tests/api/tc/v2/threat_intelligence/test_event_interface.py index edee31f4b..3f501be4d 100644 --- a/tests/api/tc/v2/threat_intelligence/test_event_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_event_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from datetime import datetime, timedelta diff --git a/tests/api/tc/v2/threat_intelligence/test_file_interface.py b/tests/api/tc/v2/threat_intelligence/test_file_interface.py index 6a1f4d729..34c6aec5e 100644 --- a/tests/api/tc/v2/threat_intelligence/test_file_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_file_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os import uuid diff --git a/tests/api/tc/v2/threat_intelligence/test_hashtag_interface.py b/tests/api/tc/v2/threat_intelligence/test_hashtag_interface.py index 92d576417..f2f8b1c1d 100644 --- a/tests/api/tc/v2/threat_intelligence/test_hashtag_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_hashtag_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_host_interface.py b/tests/api/tc/v2/threat_intelligence/test_host_interface.py index 019aaf411..1b9d213d2 100644 --- a/tests/api/tc/v2/threat_intelligence/test_host_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_host_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_incident_interface.py b/tests/api/tc/v2/threat_intelligence/test_incident_interface.py index c8dd1d761..0824fc6c2 100644 --- a/tests/api/tc/v2/threat_intelligence/test_incident_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_incident_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from datetime import datetime, timedelta diff --git a/tests/api/tc/v2/threat_intelligence/test_intrusion_set_interface.py b/tests/api/tc/v2/threat_intelligence/test_intrusion_set_interface.py index a7123e218..98f74a897 100644 --- a/tests/api/tc/v2/threat_intelligence/test_intrusion_set_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_intrusion_set_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os diff --git a/tests/api/tc/v2/threat_intelligence/test_mutex_interface.py b/tests/api/tc/v2/threat_intelligence/test_mutex_interface.py index a6b76a39f..d6e20b695 100644 --- a/tests/api/tc/v2/threat_intelligence/test_mutex_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_mutex_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_report_interface.py b/tests/api/tc/v2/threat_intelligence/test_report_interface.py index 793fed860..6081c3bbe 100644 --- a/tests/api/tc/v2/threat_intelligence/test_report_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_report_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from datetime import datetime, timedelta diff --git a/tests/api/tc/v2/threat_intelligence/test_signature_interface.py b/tests/api/tc/v2/threat_intelligence/test_signature_interface.py index a65f2a064..e85562ea4 100644 --- a/tests/api/tc/v2/threat_intelligence/test_signature_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_signature_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os import random diff --git a/tests/api/tc/v2/threat_intelligence/test_task_interface.py b/tests/api/tc/v2/threat_intelligence/test_task_interface.py index c2cc99a73..ebf544ae7 100644 --- a/tests/api/tc/v2/threat_intelligence/test_task_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_task_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os import random diff --git a/tests/api/tc/v2/threat_intelligence/test_threat_interface.py b/tests/api/tc/v2/threat_intelligence/test_threat_interface.py index 69f96cc46..2a5b60fe9 100644 --- a/tests/api/tc/v2/threat_intelligence/test_threat_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_threat_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os diff --git a/tests/api/tc/v2/threat_intelligence/test_url_interface.py b/tests/api/tc/v2/threat_intelligence/test_url_interface.py index 274f73487..af41554ee 100644 --- a/tests/api/tc/v2/threat_intelligence/test_url_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_url_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_user_agent_interface.py b/tests/api/tc/v2/threat_intelligence/test_user_agent_interface.py index dfaf2dfc5..6f3a00aac 100644 --- a/tests/api/tc/v2/threat_intelligence/test_user_agent_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_user_agent_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from random import randint diff --git a/tests/api/tc/v2/threat_intelligence/test_victim_interface.py b/tests/api/tc/v2/threat_intelligence/test_victim_interface.py index 81adb46b3..a19b648db 100644 --- a/tests/api/tc/v2/threat_intelligence/test_victim_interface.py +++ b/tests/api/tc/v2/threat_intelligence/test_victim_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os diff --git a/tests/api/tc/v2/threat_intelligence/ti_helper.py b/tests/api/tc/v2/threat_intelligence/ti_helper.py index b5029f6bd..da4e71c75 100644 --- a/tests/api/tc/v2/threat_intelligence/ti_helper.py +++ b/tests/api/tc/v2/threat_intelligence/ti_helper.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os import uuid diff --git a/tests/api/tc/v3/artifact_types/test_artifact_type_interface.py b/tests/api/tc/v3/artifact_types/test_artifact_type_interface.py index 3ffed8543..a38835b49 100644 --- a/tests/api/tc/v3/artifact_types/test_artifact_type_interface.py +++ b/tests/api/tc/v3/artifact_types/test_artifact_type_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/api/tc/v3/artifacts/test_artifact_interface.py b/tests/api/tc/v3/artifacts/test_artifact_interface.py index 98982643a..f8247fcb6 100644 --- a/tests/api/tc/v3/artifacts/test_artifact_interface.py +++ b/tests/api/tc/v3/artifacts/test_artifact_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import time from datetime import datetime, timedelta diff --git a/tests/api/tc/v3/attribute_types/test_attribute_types_snippets.py b/tests/api/tc/v3/attribute_types/test_attribute_types_snippets.py index 1ff241d7a..683bf5ba5 100644 --- a/tests/api/tc/v3/attribute_types/test_attribute_types_snippets.py +++ b/tests/api/tc/v3/attribute_types/test_attribute_types_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/case_attributes/test_case_attribute_snippets.py b/tests/api/tc/v3/case_attributes/test_case_attribute_snippets.py index 6bb5a5f97..3ce5b1270 100644 --- a/tests/api/tc/v3/case_attributes/test_case_attribute_snippets.py +++ b/tests/api/tc/v3/case_attributes/test_case_attribute_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/api/tc/v3/cases/test_case_interface.py b/tests/api/tc/v3/cases/test_case_interface.py index 39dbef4ee..6fb495ab0 100644 --- a/tests/api/tc/v3/cases/test_case_interface.py +++ b/tests/api/tc/v3/cases/test_case_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from collections.abc import Callable diff --git a/tests/api/tc/v3/cases/test_case_snippets.py b/tests/api/tc/v3/cases/test_case_snippets.py index 1645a7b8d..223e3a942 100644 --- a/tests/api/tc/v3/cases/test_case_snippets.py +++ b/tests/api/tc/v3/cases/test_case_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/api/tc/v3/group_attributes/test_group_attribute_snippets.py b/tests/api/tc/v3/group_attributes/test_group_attribute_snippets.py index 5f4217aad..8a9aeeeaf 100644 --- a/tests/api/tc/v3/group_attributes/test_group_attribute_snippets.py +++ b/tests/api/tc/v3/group_attributes/test_group_attribute_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/groups/test_group_interface.py b/tests/api/tc/v3/groups/test_group_interface.py index dc079f989..9de725194 100644 --- a/tests/api/tc/v3/groups/test_group_interface.py +++ b/tests/api/tc/v3/groups/test_group_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/api/tc/v3/indicator_attributes/test_indicator_attribute_snippets.py b/tests/api/tc/v3/indicator_attributes/test_indicator_attribute_snippets.py index 8c8e66d5d..e4a7822cc 100644 --- a/tests/api/tc/v3/indicator_attributes/test_indicator_attribute_snippets.py +++ b/tests/api/tc/v3/indicator_attributes/test_indicator_attribute_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/api/tc/v3/indicators/test_indicator_interface.py b/tests/api/tc/v3/indicators/test_indicator_interface.py index 16620bbc3..bc3ae99f9 100644 --- a/tests/api/tc/v3/indicators/test_indicator_interface.py +++ b/tests/api/tc/v3/indicators/test_indicator_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from random import randint, sample diff --git a/tests/api/tc/v3/indicators/test_indicator_snippets.py b/tests/api/tc/v3/indicators/test_indicator_snippets.py index d0a198eb6..35880cdce 100644 --- a/tests/api/tc/v3/indicators/test_indicator_snippets.py +++ b/tests/api/tc/v3/indicators/test_indicator_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/api/tc/v3/intel_requirements/test_intel_requirements_interface.py b/tests/api/tc/v3/intel_requirements/test_intel_requirements_interface.py index c32ac17c2..ef9c7b483 100644 --- a/tests/api/tc/v3/intel_requirements/test_intel_requirements_interface.py +++ b/tests/api/tc/v3/intel_requirements/test_intel_requirements_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/api/tc/v3/notes/test_note_interface.py b/tests/api/tc/v3/notes/test_note_interface.py index a2c419c73..7e6ece058 100644 --- a/tests/api/tc/v3/notes/test_note_interface.py +++ b/tests/api/tc/v3/notes/test_note_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import datetime import time diff --git a/tests/api/tc/v3/security/owner_roles/test_owner_role_snippets.py b/tests/api/tc/v3/security/owner_roles/test_owner_role_snippets.py index 4af13b97b..6441dd867 100644 --- a/tests/api/tc/v3/security/owner_roles/test_owner_role_snippets.py +++ b/tests/api/tc/v3/security/owner_roles/test_owner_role_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/security/owners/test_owner_snippets.py b/tests/api/tc/v3/security/owners/test_owner_snippets.py index 087fb7c87..693a52200 100644 --- a/tests/api/tc/v3/security/owners/test_owner_snippets.py +++ b/tests/api/tc/v3/security/owners/test_owner_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/security/system_roles/test_system_role_snippets.py b/tests/api/tc/v3/security/system_roles/test_system_role_snippets.py index ea29686a9..3f851e67d 100644 --- a/tests/api/tc/v3/security/system_roles/test_system_role_snippets.py +++ b/tests/api/tc/v3/security/system_roles/test_system_role_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/security/user_groups/test_user_group_snippets.py b/tests/api/tc/v3/security/user_groups/test_user_group_snippets.py index 1bfdd67dc..5fa89530f 100644 --- a/tests/api/tc/v3/security/user_groups/test_user_group_snippets.py +++ b/tests/api/tc/v3/security/user_groups/test_user_group_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/security/users/test_user_group_snippets.py b/tests/api/tc/v3/security/users/test_user_group_snippets.py index 1a3c9f5b2..99fec601a 100644 --- a/tests/api/tc/v3/security/users/test_user_group_snippets.py +++ b/tests/api/tc/v3/security/users/test_user_group_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/tasks/test_task_interface.py b/tests/api/tc/v3/tasks/test_task_interface.py index 071ce561a..80cecc854 100644 --- a/tests/api/tc/v3/tasks/test_task_interface.py +++ b/tests/api/tc/v3/tasks/test_task_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import time from datetime import datetime, timedelta diff --git a/tests/api/tc/v3/victim_assets/test_victim_assets_snippets.py b/tests/api/tc/v3/victim_assets/test_victim_assets_snippets.py index aa36d248f..dddb265b5 100644 --- a/tests/api/tc/v3/victim_assets/test_victim_assets_snippets.py +++ b/tests/api/tc/v3/victim_assets/test_victim_assets_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/api/tc/v3/victim_attributes/test_victim_attribute_snippets.py b/tests/api/tc/v3/victim_attributes/test_victim_attribute_snippets.py index 32f2111a3..7b4411c92 100644 --- a/tests/api/tc/v3/victim_attributes/test_victim_attribute_snippets.py +++ b/tests/api/tc/v3/victim_attributes/test_victim_attribute_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/api/tc/v3/victims/test_victim_snippets.py b/tests/api/tc/v3/victims/test_victim_snippets.py index bbb2a2be8..4863904b7 100644 --- a/tests/api/tc/v3/victims/test_victim_snippets.py +++ b/tests/api/tc/v3/victims/test_victim_snippets.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex.api.tc.v3.tql.tql_operator import TqlOperator from tests.api.tc.v3.v3_helpers import TestV3, V3Helper diff --git a/tests/api/tc/v3/workflow_events/test_workflow_event_interface.py b/tests/api/tc/v3/workflow_events/test_workflow_event_interface.py index 6c9f45564..bf8c59d65 100644 --- a/tests/api/tc/v3/workflow_events/test_workflow_event_interface.py +++ b/tests/api/tc/v3/workflow_events/test_workflow_event_interface.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os import time diff --git a/tests/app/config/apps/tcpb/app_1/app_inputs.py b/tests/app/config/apps/tcpb/app_1/app_inputs.py index e4f699b9f..73c88d90b 100644 --- a/tests/app/config/apps/tcpb/app_1/app_inputs.py +++ b/tests/app/config/apps/tcpb/app_1/app_inputs.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=no-self-argument # standard library from typing import Any diff --git a/tests/app/config/copy_ij_file.py b/tests/app/config/copy_ij_file.py index ac84861ed..ebc0ded5e 100644 --- a/tests/app/config/copy_ij_file.py +++ b/tests/app/config/copy_ij_file.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from shutil import copyfile diff --git a/tests/app/config/copy_lj_file.py b/tests/app/config/copy_lj_file.py index d37a9a78c..4c4ef6597 100644 --- a/tests/app/config/copy_lj_file.py +++ b/tests/app/config/copy_lj_file.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from shutil import copyfile diff --git a/tests/app/config/test_install_json_model.py b/tests/app/config/test_install_json_model.py index a693a563a..31492a474 100644 --- a/tests/app/config/test_install_json_model.py +++ b/tests/app/config/test_install_json_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=R1710 # standard library import json diff --git a/tests/app/config/test_job_json_model.py b/tests/app/config/test_job_json_model.py index 0b6622a89..0f3eb13ba 100644 --- a/tests/app/config/test_job_json_model.py +++ b/tests/app/config/test_job_json_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=R1710 # standard library import json diff --git a/tests/app/config/test_layout_json_model.py b/tests/app/config/test_layout_json_model.py index c2c9b392c..e9ba1579c 100644 --- a/tests/app/config/test_layout_json_model.py +++ b/tests/app/config/test_layout_json_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=R1710 # standard library import json diff --git a/tests/app/config/test_permutation.py b/tests/app/config/test_permutation.py index 58179d560..90cd11997 100644 --- a/tests/app/config/test_permutation.py +++ b/tests/app/config/test_permutation.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=R1710 # standard library import os diff --git a/tests/app/config/test_tcex_json_model.py b/tests/app/config/test_tcex_json_model.py index 867c08d76..470de015f 100644 --- a/tests/app/config/test_tcex_json_model.py +++ b/tests/app/config/test_tcex_json_model.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # pylint: disable=R1710 # standard library import json diff --git a/tests/app/decorator/test_decorator_benchmark.py b/tests/app/decorator/test_decorator_benchmark.py index ae93cd224..46a1a7d2e 100644 --- a/tests/app/decorator/test_decorator_benchmark.py +++ b/tests/app/decorator/test_decorator_benchmark.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/app/decorator/test_decorator_debug.py b/tests/app/decorator/test_decorator_debug.py index 001f3ff9d..53b44d870 100644 --- a/tests/app/decorator/test_decorator_debug.py +++ b/tests/app/decorator/test_decorator_debug.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/app/decorator/test_decorator_fail_on_output.py b/tests/app/decorator/test_decorator_fail_on_output.py index 2af942d35..09052ab50 100644 --- a/tests/app/decorator/test_decorator_fail_on_output.py +++ b/tests/app/decorator/test_decorator_fail_on_output.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/app/decorator/test_decorator_on_exception.py b/tests/app/decorator/test_decorator_on_exception.py index d86625314..bf4bbe66f 100644 --- a/tests/app/decorator/test_decorator_on_exception.py +++ b/tests/app/decorator/test_decorator_on_exception.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from collections.abc import Callable diff --git a/tests/app/decorator/test_decorator_on_success.py b/tests/app/decorator/test_decorator_on_success.py index 8dc35c9eb..1d5817bbe 100644 --- a/tests/app/decorator/test_decorator_on_success.py +++ b/tests/app/decorator/test_decorator_on_success.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/app/decorator/test_decorator_output.py b/tests/app/decorator/test_decorator_output.py index d1d58e1fe..cb7f825d7 100644 --- a/tests/app/decorator/test_decorator_output.py +++ b/tests/app/decorator/test_decorator_output.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/app/playbook/test_advanced_request.py b/tests/app/playbook/test_advanced_request.py index a631890be..12b05683e 100644 --- a/tests/app/playbook/test_advanced_request.py +++ b/tests/app/playbook/test_advanced_request.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json from collections.abc import Callable diff --git a/tests/app/playbook/test_playbook.py b/tests/app/playbook/test_playbook.py index 6c54c2f22..f8a5c60fe 100644 --- a/tests/app/playbook/test_playbook.py +++ b/tests/app/playbook/test_playbook.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any diff --git a/tests/app/playbook/test_playbook_binary_type.py b/tests/app/playbook/test_playbook_binary_type.py index 4000231bb..a5007987a 100644 --- a/tests/app/playbook/test_playbook_binary_type.py +++ b/tests/app/playbook/test_playbook_binary_type.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import Any diff --git a/tests/app/playbook/test_playbook_create.py b/tests/app/playbook/test_playbook_create.py index c95cae9bb..47cfbc5e5 100644 --- a/tests/app/playbook/test_playbook_create.py +++ b/tests/app/playbook/test_playbook_create.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any diff --git a/tests/app/playbook/test_playbook_embedded_variable.py b/tests/app/playbook/test_playbook_embedded_variable.py index e4c655e0d..f01de9a15 100644 --- a/tests/app/playbook/test_playbook_embedded_variable.py +++ b/tests/app/playbook/test_playbook_embedded_variable.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import Any diff --git a/tests/app/playbook/test_playbook_key_value_api.py b/tests/app/playbook/test_playbook_key_value_api.py index e8b148e06..8aebcd799 100644 --- a/tests/app/playbook/test_playbook_key_value_api.py +++ b/tests/app/playbook/test_playbook_key_value_api.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any diff --git a/tests/app/playbook/test_playbook_key_value_type.py b/tests/app/playbook/test_playbook_key_value_type.py index c212e3105..761f1454b 100644 --- a/tests/app/playbook/test_playbook_key_value_type.py +++ b/tests/app/playbook/test_playbook_key_value_type.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import Any diff --git a/tests/app/playbook/test_playbook_raw.py b/tests/app/playbook/test_playbook_raw.py index 778833d26..910e75966 100644 --- a/tests/app/playbook/test_playbook_raw.py +++ b/tests/app/playbook/test_playbook_raw.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/app/playbook/test_playbook_read.py b/tests/app/playbook/test_playbook_read.py index 03a6f35ec..3d08a823b 100644 --- a/tests/app/playbook/test_playbook_read.py +++ b/tests/app/playbook/test_playbook_read.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/app/playbook/test_playbook_string_type.py b/tests/app/playbook/test_playbook_string_type.py index bd2dbd927..45ab3ac3d 100644 --- a/tests/app/playbook/test_playbook_string_type.py +++ b/tests/app/playbook/test_playbook_string_type.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Iterable from typing import Any diff --git a/tests/app/playbook/test_playbook_tc_batch_type.py b/tests/app/playbook/test_playbook_tc_batch_type.py index 5cf9ffbba..756bb07c5 100644 --- a/tests/app/playbook/test_playbook_tc_batch_type.py +++ b/tests/app/playbook/test_playbook_tc_batch_type.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import os diff --git a/tests/app/playbook/test_playbook_tc_entity_type.py b/tests/app/playbook/test_playbook_tc_entity_type.py index c6970c4dd..fd7fe6940 100644 --- a/tests/app/playbook/test_playbook_tc_entity_type.py +++ b/tests/app/playbook/test_playbook_tc_entity_type.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import Any diff --git a/tests/app/token_/test_token.py b/tests/app/token_/test_token.py index a397ad96a..a38826c3b 100644 --- a/tests/app/token_/test_token.py +++ b/tests/app/token_/test_token.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import threading import time diff --git a/tests/exit/test_message_tc.py b/tests/exit/test_message_tc.py index dedb2c30d..b94d7c7f6 100644 --- a/tests/exit/test_message_tc.py +++ b/tests/exit/test_message_tc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os diff --git a/tests/input/field_type/advanced_settings/test_advanced_settings.py b/tests/input/field_type/advanced_settings/test_advanced_settings.py index 186289b7f..c9eccba63 100644 --- a/tests/input/field_type/advanced_settings/test_advanced_settings.py +++ b/tests/input/field_type/advanced_settings/test_advanced_settings.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_binary.py b/tests/input/field_type/test_field_type_binary.py index af0674491..c458e3629 100644 --- a/tests/input/field_type/test_field_type_binary.py +++ b/tests/input/field_type/test_field_type_binary.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_choice.py b/tests/input/field_type/test_field_type_choice.py index a85f3e45c..12d3aed48 100644 --- a/tests/input/field_type/test_field_type_choice.py +++ b/tests/input/field_type/test_field_type_choice.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_datetime.py b/tests/input/field_type/test_field_type_datetime.py index a643f4b9b..8c1cd3ad9 100644 --- a/tests/input/field_type/test_field_type_datetime.py +++ b/tests/input/field_type/test_field_type_datetime.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import math from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_edit_choice.py b/tests/input/field_type/test_field_type_edit_choice.py index 3ba6acea8..a25cbff27 100644 --- a/tests/input/field_type/test_field_type_edit_choice.py +++ b/tests/input/field_type/test_field_type_edit_choice.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_integer.py b/tests/input/field_type/test_field_type_integer.py index 92f7bd493..5d4336e76 100644 --- a/tests/input/field_type/test_field_type_integer.py +++ b/tests/input/field_type/test_field_type_integer.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_ip_address.py b/tests/input/field_type/test_field_type_ip_address.py index 0d805cf77..f81607571 100644 --- a/tests/input/field_type/test_field_type_ip_address.py +++ b/tests/input/field_type/test_field_type_ip_address.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable @@ -278,14 +279,11 @@ class PytestModelRequired(BaseModel): class PytestModelOptional(BaseModel): """Test Model for Inputs""" - my_data: ( - None - | ( - list[IpAddress] - | IpAddress - | list[AddressEntity] # type: ignore - | AddressEntity # type: ignore - ) + my_data: None | ( + list[IpAddress] + | IpAddress + | list[AddressEntity] # type: ignore + | AddressEntity # type: ignore ) _entity_input = validator('my_data', allow_reuse=True)( diff --git a/tests/input/field_type/test_field_type_key_value.py b/tests/input/field_type/test_field_type_key_value.py index d3e54db08..fa10ad73c 100644 --- a/tests/input/field_type/test_field_type_key_value.py +++ b/tests/input/field_type/test_field_type_key_value.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_sensitive.py b/tests/input/field_type/test_field_type_sensitive.py index fb0c24e35..6748170f9 100644 --- a/tests/input/field_type/test_field_type_sensitive.py +++ b/tests/input/field_type/test_field_type_sensitive.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_string.py b/tests/input/field_type/test_field_type_string.py index ca5f2a5ee..1420bb04f 100644 --- a/tests/input/field_type/test_field_type_string.py +++ b/tests/input/field_type/test_field_type_string.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/test_field_type_tcentity.py b/tests/input/field_type/test_field_type_tcentity.py index 5af356a96..705885524 100644 --- a/tests/input/field_type/test_field_type_tcentity.py +++ b/tests/input/field_type/test_field_type_tcentity.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/field_type/util.py b/tests/input/field_type/util.py index 0b9e73a31..c724b5177 100644 --- a/tests/input/field_type/util.py +++ b/tests/input/field_type/util.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable from typing import Any diff --git a/tests/input/test_file_param.py b/tests/input/test_file_param.py index 4f689c97c..30864f7d7 100644 --- a/tests/input/test_file_param.py +++ b/tests/input/test_file_param.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/input/test_input.py b/tests/input/test_input.py index 822eaba03..22fde1fe6 100644 --- a/tests/input/test_input.py +++ b/tests/input/test_input.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import os diff --git a/tests/logger/test_api_handler.py b/tests/logger/test_api_handler.py index acdf03ca6..878074d1c 100644 --- a/tests/logger/test_api_handler.py +++ b/tests/logger/test_api_handler.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from collections.abc import Callable diff --git a/tests/logger/test_logger.py b/tests/logger/test_logger.py index d0ac6ed3b..990c3440b 100644 --- a/tests/logger/test_logger.py +++ b/tests/logger/test_logger.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import os from collections.abc import Callable diff --git a/tests/mock_app.py b/tests/mock_app.py index b13c79a30..8c415c3aa 100644 --- a/tests/mock_app.py +++ b/tests/mock_app.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import json import os diff --git a/tests/requests_external/test_rate_limit_handler.py b/tests/requests_external/test_rate_limit_handler.py index 9184951fe..3cae75c82 100644 --- a/tests/requests_external/test_rate_limit_handler.py +++ b/tests/requests_external/test_rate_limit_handler.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import time from unittest.mock import MagicMock, patch diff --git a/tests/requests_external/test_session_external.py b/tests/requests_external/test_session_external.py index be4633e84..e976475c4 100644 --- a/tests/requests_external/test_session_external.py +++ b/tests/requests_external/test_session_external.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from typing import cast from unittest.mock import patch diff --git a/tests/requests_tc/test_session_tc.py b/tests/requests_tc/test_session_tc.py index cdbd8fcd9..68b61d530 100644 --- a/tests/requests_tc/test_session_tc.py +++ b/tests/requests_tc/test_session_tc.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # first-party from tcex import TcEx diff --git a/tests/util/test_aes_operation.py b/tests/util/test_aes_operation.py index 9ae3c259d..a9d46b43a 100644 --- a/tests/util/test_aes_operation.py +++ b/tests/util/test_aes_operation.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_datetime_operation.py b/tests/util/test_datetime_operation.py index 48aeb0916..c187618e3 100644 --- a/tests/util/test_datetime_operation.py +++ b/tests/util/test_datetime_operation.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import re diff --git a/tests/util/test_file_operation.py b/tests/util/test_file_operation.py index 54676ae4b..1b8e12e9b 100644 --- a/tests/util/test_file_operation.py +++ b/tests/util/test_file_operation.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import gzip import json diff --git a/tests/util/test_request_to_curl.py b/tests/util/test_request_to_curl.py index 2b8afd5a6..c36c9f08f 100644 --- a/tests/util/test_request_to_curl.py +++ b/tests/util/test_request_to_curl.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import re from base64 import b64decode diff --git a/tests/util/test_string_operation_random_string.py b/tests/util/test_string_operation_random_string.py index 6b99136a3..81bd31b33 100644 --- a/tests/util/test_string_operation_random_string.py +++ b/tests/util/test_string_operation_random_string.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_string_operation_snake_case.py b/tests/util/test_string_operation_snake_case.py index a549c6c2d..d5b7248fd 100644 --- a/tests/util/test_string_operation_snake_case.py +++ b/tests/util/test_string_operation_snake_case.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_string_operation_to_bool.py b/tests/util/test_string_operation_to_bool.py index 6e3988f6e..801cc9af5 100644 --- a/tests/util/test_string_operation_to_bool.py +++ b/tests/util/test_string_operation_to_bool.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_string_operation_truncate_string.py b/tests/util/test_string_operation_truncate_string.py index 1432bb3f1..6c0977dd2 100644 --- a/tests/util/test_string_operation_truncate_string.py +++ b/tests/util/test_string_operation_truncate_string.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_string_operation_wrap_string.py b/tests/util/test_string_operation_wrap_string.py index 793e6b010..d50adbd6f 100644 --- a/tests/util/test_string_operation_wrap_string.py +++ b/tests/util/test_string_operation_wrap_string.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_util_find_line_in_code.py b/tests/util/test_util_find_line_in_code.py index 6cd263898..3f378028b 100644 --- a/tests/util/test_util_find_line_in_code.py +++ b/tests/util/test_util_find_line_in_code.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library from pathlib import Path from re import Pattern diff --git a/tests/util/test_util_flatten_list.py b/tests/util/test_util_flatten_list.py index 5881d9ebe..dfb27e954 100644 --- a/tests/util/test_util_flatten_list.py +++ b/tests/util/test_util_flatten_list.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_util_is_cidr.py b/tests/util/test_util_is_cidr.py index fd5353b8e..4b04d738a 100644 --- a/tests/util/test_util_is_cidr.py +++ b/tests/util/test_util_is_cidr.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_util_is_ip.py b/tests/util/test_util_is_ip.py index d6a9b24ef..837c34392 100644 --- a/tests/util/test_util_is_ip.py +++ b/tests/util/test_util_is_ip.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_util_printable_creds.py b/tests/util/test_util_printable_creds.py index 5742d53e9..b167e8d05 100644 --- a/tests/util/test_util_printable_creds.py +++ b/tests/util/test_util_printable_creds.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_util_remove_none.py b/tests/util/test_util_remove_none.py index ddc589908..786a4cfd3 100644 --- a/tests/util/test_util_remove_none.py +++ b/tests/util/test_util_remove_none.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_util_standardize_asn.py b/tests/util/test_util_standardize_asn.py index 35aac4971..2d4f44d00 100644 --- a/tests/util/test_util_standardize_asn.py +++ b/tests/util/test_util_standardize_asn.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # third-party import pytest diff --git a/tests/util/test_variable.py b/tests/util/test_variable.py index 624e5689f..85ad21b31 100644 --- a/tests/util/test_variable.py +++ b/tests/util/test_variable.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import re