Skip to content

Commit

Permalink
fix: linter issues based on superlinter!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Nov 29, 2023
1 parent 1d80d04 commit 1508967
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 14 deletions.
1 change: 0 additions & 1 deletion discord_analyzer/analysis/compute_member_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
1 change: 0 additions & 1 deletion discord_analyzer/analysis/neo4j_analysis/centrality.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion discord_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_analyzer_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_automation_db_load_from_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from automation.utils.model import AutomationDB
from dotenv import load_dotenv

from utils.get_mongo_client import MongoSingleton


Expand Down
Original file line number Diff line number Diff line change
@@ -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


Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_publish_on_success.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_service_connection.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from tc_messageBroker.message_broker import RabbitMQ

from utils.daolytics_uitls import get_rabbit_mq_credentials


Expand Down
3 changes: 1 addition & 2 deletions tests/integration/utils/analyzer_setup.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/utils/mock_graph.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
1 change: 0 additions & 1 deletion tests/integration/utils/remove_and_setup_guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numpy as np
from bson.objectid import ObjectId

from discord_analyzer.DB_operations.mongodb_access import DB_access


Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_mongo_singleton.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import unittest

from pymongo import MongoClient

from utils.get_mongo_client import MongoSingleton


Expand Down

0 comments on commit 1508967

Please sign in to comment.