fix(repo): ruff fixes / removing pylint exceptions
This commit is contained in:
parent
e34d621e6d
commit
858a1bae8a
12 changed files with 51 additions and 56 deletions
|
@ -1,5 +1,3 @@
|
|||
# pylint: disable=cyclic-import
|
||||
|
||||
import json
|
||||
import sqlite3
|
||||
import time
|
||||
|
@ -87,8 +85,8 @@ async def create_guild_table(guild: Guild):
|
|||
"NULL",
|
||||
"NULL",
|
||||
0,
|
||||
json.dumps([]), # pylint: disable=dangerous-default-value
|
||||
json.dumps({}), # pylint: disable=dangerous-default-value
|
||||
json.dumps([]),
|
||||
json.dumps({}),
|
||||
)
|
||||
cursor.execute(insert_query, insert_values)
|
||||
|
||||
|
@ -104,7 +102,6 @@ async def create_guild_table(guild: Guild):
|
|||
database.close()
|
||||
|
||||
|
||||
# pylint: disable=dangerous-default-value
|
||||
async def mysql_log(
|
||||
guild_id: str,
|
||||
author_id: str,
|
||||
|
|
|
@ -1,18 +1,13 @@
|
|||
# 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(
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# pylint: disable=cyclic-import
|
||||
|
||||
import json
|
||||
from datetime import timedelta as td
|
||||
from typing import Union
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue