diff --git a/bot.py b/bot.py index 31126ec..cafc2e3 100644 --- a/bot.py +++ b/bot.py @@ -8,9 +8,10 @@ import topgg import aiohttp -import discord import aiomysql import wavelink + +import discord from discord.ext import tasks, commands from discord.ext.ipc import Server from discord.app_commands import CommandTree diff --git a/cogs/filters.py b/cogs/filters.py index fe0e35a..df72bc5 100644 --- a/cogs/filters.py +++ b/cogs/filters.py @@ -4,8 +4,9 @@ import collections -import discord import wavelink + +import discord from discord import ui, app_commands from discord.ext import commands diff --git a/cogs/music.py b/cogs/music.py index 8c8f3c9..a1c63d0 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -6,8 +6,9 @@ import random import string -import discord import wavelink + +import discord from discord import app_commands from discord.ext import commands from discord.ext.menus.views import ViewMenuPages diff --git a/cogs/utility.py b/cogs/utility.py index b03f976..c94aef2 100644 --- a/cogs/utility.py +++ b/cogs/utility.py @@ -4,10 +4,11 @@ import textwrap +from lyricsgenius import Genius + import discord from discord import app_commands from discord.ext import commands -from lyricsgenius import Genius from discord.ext.menus.views import ViewMenuPages from utils.cd import cooldown_level_0, cooldown_level_1 diff --git a/launcher.py b/launcher.py index ed7b812..de6aba8 100644 --- a/launcher.py +++ b/launcher.py @@ -7,10 +7,11 @@ from datetime import datetime import click -import discord import pymysql import aiomysql +import discord + from bot import FumeTune import config diff --git a/pyproject.toml b/pyproject.toml index c7750a9..9a40ef7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,11 +42,12 @@ line-length = 85 target-version = "py312" [tool.ruff.lint.isort] -section-order = ["future", "typing", "standard-library", "third-party", "first-party", "local-folder", "config"] +section-order = ["future", "typing", "standard-library", "third-party", "discord", "first-party", "local-folder", "config"] force-wrap-aliases = true combine-as-imports = true length-sort = true [tool.ruff.lint.isort.sections] -"typing" = ["typing"] "config" = ["config"] +"discord" = ["discord"] +"typing" = ["typing"] diff --git a/utils/player.py b/utils/player.py index 2855a47..1e72c14 100644 --- a/utils/player.py +++ b/utils/player.py @@ -2,9 +2,10 @@ import asyncio -import discord import wavelink +import discord + from utils.tools import parse_duration