diff --git a/discord_analyzer/analysis/compute_member_activity.py b/discord_analyzer/analysis/compute_member_activity.py index 523837e..dc78655 100644 --- a/discord_analyzer/analysis/compute_member_activity.py +++ b/discord_analyzer/analysis/compute_member_activity.py @@ -11,7 +11,6 @@ import networkx as nx import numpy as np from dateutil.relativedelta import relativedelta - from discord_analyzer.analysis.compute_interaction_matrix_discord import ( compute_interaction_matrix_discord, ) diff --git a/discord_analyzer/analysis/neo4j_analysis/centrality.py b/discord_analyzer/analysis/neo4j_analysis/centrality.py index f20cd94..bf7bf17 100644 --- a/discord_analyzer/analysis/neo4j_analysis/centrality.py +++ b/discord_analyzer/analysis/neo4j_analysis/centrality.py @@ -2,7 +2,6 @@ from typing import Literal import pandas as pd - from discord_analyzer.analysis.neo4j_metrics import Neo4JMetrics from discord_analyzer.analysis.neo4j_utils.projection_utils import ProjectionUtils from tc_neo4j_lib.neo4j_ops import Neo4jOps diff --git a/discord_utils.py b/discord_utils.py index d4595ac..dd1f87e 100644 --- a/discord_utils.py +++ b/discord_utils.py @@ -4,8 +4,8 @@ from analyzer_init import AnalyzerInit from automation.automation_workflow import AutomationWorkflow from tc_messageBroker.rabbit_mq.saga.saga_base import get_saga -from utils.get_rabbitmq import prepare_rabbit_mq from utils.get_guild_id import get_guild_id +from utils.get_rabbitmq import prepare_rabbit_mq from utils.transactions_ordering import sort_transactions diff --git a/tests/integration/test_analyzer_init.py b/tests/integration/test_analyzer_init.py index 517d67c..33298da 100644 --- a/tests/integration/test_analyzer_init.py +++ b/tests/integration/test_analyzer_init.py @@ -3,7 +3,6 @@ from analyzer_init import AnalyzerInit from bson.objectid import ObjectId from pymongo import MongoClient - from utils.daolytics_uitls import get_mongo_credentials diff --git a/tests/integration/test_automation_db_load_from_db.py b/tests/integration/test_automation_db_load_from_db.py index 5557790..213bd60 100644 --- a/tests/integration/test_automation_db_load_from_db.py +++ b/tests/integration/test_automation_db_load_from_db.py @@ -4,7 +4,6 @@ from automation.utils.model import AutomationDB from dotenv import load_dotenv - from utils.get_mongo_client import MongoSingleton diff --git a/tests/integration/test_member_activity_from_start_no_past_data.py b/tests/integration/test_member_activity_from_start_no_past_data.py index 0d80c48..d495112 100644 --- a/tests/integration/test_member_activity_from_start_no_past_data.py +++ b/tests/integration/test_member_activity_from_start_no_past_data.py @@ -1,6 +1,8 @@ # test analyzing memberactivities from datetime import datetime, timedelta + from bson.objectid import ObjectId + from .utils.analyzer_setup import launch_db_access, setup_analyzer diff --git a/tests/integration/test_publish_on_success.py b/tests/integration/test_publish_on_success.py index eb21366..b9f6763 100644 --- a/tests/integration/test_publish_on_success.py +++ b/tests/integration/test_publish_on_success.py @@ -1,8 +1,6 @@ import os from datetime import datetime, timedelta - from bson.objectid import ObjectId -from dotenv import load_dotenv from automation.utils.interfaces import ( Automation, @@ -11,6 +9,7 @@ AutomationTrigger, ) from discord_utils import publish_on_success +from dotenv import load_dotenv from utils.daolytics_uitls import get_mongo_credentials from .utils.analyzer_setup import launch_db_access diff --git a/tests/integration/test_service_connection.py b/tests/integration/test_service_connection.py index e51dd53..5e42f64 100644 --- a/tests/integration/test_service_connection.py +++ b/tests/integration/test_service_connection.py @@ -1,5 +1,4 @@ from tc_messageBroker.message_broker import RabbitMQ - from utils.daolytics_uitls import get_rabbit_mq_credentials diff --git a/tests/integration/utils/analyzer_setup.py b/tests/integration/utils/analyzer_setup.py index eaae75c..e48f473 100644 --- a/tests/integration/utils/analyzer_setup.py +++ b/tests/integration/utils/analyzer_setup.py @@ -1,9 +1,8 @@ import os -from dotenv import load_dotenv - from discord_analyzer.DB_operations.mongodb_access import DB_access from discord_analyzer.rn_analyzer import RnDaoAnalyzer +from dotenv import load_dotenv def setup_analyzer() -> RnDaoAnalyzer: diff --git a/tests/integration/utils/mock_graph.py b/tests/integration/utils/mock_graph.py index 56acea8..d244e3a 100644 --- a/tests/integration/utils/mock_graph.py +++ b/tests/integration/utils/mock_graph.py @@ -1,11 +1,10 @@ import os +from discord_analyzer import RnDaoAnalyzer from dotenv import load_dotenv from tc_core_analyzer_lib.assess_engagement import EngagementAssessment from tc_core_analyzer_lib.utils.activity import DiscordActivity -from discord_analyzer import RnDaoAnalyzer - from .activity_params import prepare_activity_params diff --git a/tests/integration/utils/remove_and_setup_guild.py b/tests/integration/utils/remove_and_setup_guild.py index 9ea027e..9b741bc 100644 --- a/tests/integration/utils/remove_and_setup_guild.py +++ b/tests/integration/utils/remove_and_setup_guild.py @@ -3,7 +3,6 @@ import numpy as np from bson.objectid import ObjectId - from discord_analyzer.DB_operations.mongodb_access import DB_access diff --git a/tests/unit/test_mongo_singleton.py b/tests/unit/test_mongo_singleton.py index fa441e2..518c02e 100644 --- a/tests/unit/test_mongo_singleton.py +++ b/tests/unit/test_mongo_singleton.py @@ -1,7 +1,6 @@ import unittest from pymongo import MongoClient - from utils.get_mongo_client import MongoSingleton