2from discord import app_commands
3from data.model import FilterWord
4from data.services import guild_service, user_service
5from discord.ext import commands 6from utils import GIRContext, cfg, transform_context
7from utils.framework import (admin_and_up, always_whisper, gatekeeper,
8 mod_and_up)
5import discord
6from discord import app_commands
7from data.services import guild_service
8from discord.ext import commands 9from utils import GIRContext, cfg
10from utils.context import transform_context
11from utils.framework import genius_or_submod_and_up, whisper_in_general, submod_or_admin_and_up, ImageAttachment, gatekeeper
Imports for the same package are scattered and not grouped together. It is recommended to keep the imports from the same package together. It makes the code easier to read.
Not preferred:
import os
import sys
from os import listdir
import time
from os.path import isfile, join
Preferred:
import os
from os import listdir
from os.path import isfile, join
import sys
import time