sort the bot's own imports as first-party

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-11-03 01:37:48 +01:00
1 parent ddba4efc1f
commit ab0a040926
7 files changed
+16 -10

No files matched your search

+2 -1
View File
@@ -2,9 +2,10 @@ import asyncio
from os import listdir
import discord
from cogs.utils import embed_templates
from discord.ext import commands
from cogs.utils import embed_templates
class DevTools(commands.Cog):
"""Commands for developers to mangage cogs and other functionality of the bot"""
+2 -1
View File
@@ -1,10 +1,11 @@
import traceback
import discord
from cogs.utils import embed_templates
from discord import app_commands
from discord.ext import commands
from cogs.utils import embed_templates
class Errors(commands.Cog):
"""Error handlers for commands"""
+5 -4
View File
@@ -8,18 +8,19 @@ from typing import TypeVar
import aiohttp
import asyncpg
import discord
from cogs.utils import discord_utils
from cogs.utils import embed_templates
from cogs.utils import misc_utils
from discord import app_commands
from discord.ext import commands
from discord.ext import tasks
from pydantic import ValidationError
from cogs.utils import discord_utils
from cogs.utils import embed_templates
from cogs.utils import misc_utils
from models import BasicResponse
from models import DiscordProfiles
from models import DuskenUser
from models import Groups
from models import Users
from pydantic import ValidationError
ResponseModel = TypeVar("ResponseModel", bound=BasicResponse)
+3 -2
View File
@@ -1,9 +1,10 @@
import discord
from discord import app_commands
from discord.ext import commands
from cogs.utils import discord_utils
from cogs.utils import embed_templates
from cogs.utils import misc_utils
from discord import app_commands
from discord.ext import commands
class Info(commands.Cog):
+2 -1
View File
@@ -4,10 +4,11 @@ import aiohttp
import discord
import pypandoc
import regex # This should be redundant as re now supports recursive patterns, but apparently it doesn't
from cogs.utils import embed_templates
from discord import app_commands
from discord.ext import commands
from cogs.utils import embed_templates
WIKI_BASE_URL = "https://viteboka.studentersamfundet.no"
API_URL = f"{WIKI_BASE_URL}/w/api.php"
+1
View File
@@ -5,6 +5,7 @@ import asyncpg
import discord
from discord.ext import commands
from dotenv import load_dotenv
from logger import BotLogger
# Load config file
+1 -1
View File
@@ -6,7 +6,7 @@ atomic = true
profile = "black"
line_length = 120
force_single_line = true
known_first_party = ["black"]
src_paths = ["bot/src", "verification_server/src"]
[tool.ruff]
line-length = 120