Skip to content

Commit

Permalink
lint: reformat code to separate discord imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn1F3rt committed Dec 19, 2024
1 parent 0bd110c commit d7fa5e4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion cogs/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

import collections

import discord
import wavelink

import discord
from discord import ui, app_commands
from discord.ext import commands

Expand Down
3 changes: 2 additions & 1 deletion cogs/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion cogs/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
from datetime import datetime

import click
import discord
import pymysql
import aiomysql

import discord

from bot import FumeTune

import config
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 2 additions & 1 deletion utils/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

import asyncio

import discord
import wavelink

import discord

from utils.tools import parse_duration


Expand Down

0 comments on commit d7fa5e4

Please sign in to comment.