From 84543fbd73386890c37f36734e723c249badbcd2 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 28 Feb 2024 10:58:57 -0500 Subject: [PATCH] fix(aurora): more pylint fixes --- aurora/importers/aurora.py | 1 + aurora/importers/galacticbot.py | 1 + aurora/utilities/database.py | 4 ++-- aurora/utilities/factory.py | 8 ++++++-- aurora/utilities/utils.py | 1 + 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/aurora/importers/aurora.py b/aurora/importers/aurora.py index ebe3d86..a4857aa 100644 --- a/aurora/importers/aurora.py +++ b/aurora/importers/aurora.py @@ -1,3 +1,4 @@ +# pylint: disable=duplicate-code import json from datetime import timedelta from typing import Dict diff --git a/aurora/importers/galacticbot.py b/aurora/importers/galacticbot.py index c3c65bf..c6e0b99 100644 --- a/aurora/importers/galacticbot.py +++ b/aurora/importers/galacticbot.py @@ -1,3 +1,4 @@ +# pylint: disable=duplicate-code import json from datetime import timedelta diff --git a/aurora/utilities/database.py b/aurora/utilities/database.py index 591d77c..689f424 100644 --- a/aurora/utilities/database.py +++ b/aurora/utilities/database.py @@ -1,3 +1,4 @@ +# pylint: disable=cyclic-import import json import sqlite3 import time @@ -7,8 +8,7 @@ from discord import Guild from redbot.core import data_manager from .logger import logger -from .utils import (convert_timedelta_to_str, generate_dict, - get_next_case_number) +from .utils import convert_timedelta_to_str, generate_dict, get_next_case_number def connect() -> sqlite3.Connection: diff --git a/aurora/utilities/factory.py b/aurora/utilities/factory.py index 18e5bd3..b7c414c 100644 --- a/aurora/utilities/factory.py +++ b/aurora/utilities/factory.py @@ -1,13 +1,17 @@ +# pylint: disable=cyclic-import from datetime import datetime, timedelta from typing import Union import humanize -from discord import Color, Embed, Guild, Interaction, InteractionMessage, Member, Role, User +from discord import (Color, Embed, Guild, Interaction, InteractionMessage, + Member, Role, User) from redbot.core import commands from redbot.core.utils.chat_formatting import bold, box, error, warning from aurora.utilities.config import config -from aurora.utilities.utils import fetch_channel_dict, fetch_user_dict, get_bool_emoji, get_next_case_number, get_pagesize_str +from aurora.utilities.utils import (fetch_channel_dict, fetch_user_dict, + get_bool_emoji, get_next_case_number, + get_pagesize_str) async def message_factory( diff --git a/aurora/utilities/utils.py b/aurora/utilities/utils.py index 24dbe34..12c8400 100644 --- a/aurora/utilities/utils.py +++ b/aurora/utilities/utils.py @@ -1,3 +1,4 @@ +# pylint: disable=cyclic-import import json from datetime import timedelta as td from typing import Union