diff --git a/discord_reminder_bot/main.py b/discord_reminder_bot/main.py index 69ee212..1b8c21c 100644 --- a/discord_reminder_bot/main.py +++ b/discord_reminder_bot/main.py @@ -12,10 +12,18 @@ from discord_slash.error import IncorrectFormat, RequestFailure from discord_slash.model import SlashCommandOptionType from discord_slash.utils.manage_commands import create_choice, create_option -from discord_reminder_bot.settings import bot_token, config_timezone, log_level, scheduler, sqlite_location +from discord_reminder_bot.settings import ( + bot_token, + config_timezone, + log_level, + scheduler, + sqlite_location, +) bot = commands.Bot( - command_prefix="!", description="Reminder bot for Discord by TheLovinator#9276", intents=discord.Intents.all() + command_prefix="!", + description="Reminder bot for Discord by TheLovinator#9276", + intents=discord.Intents.all(), ) slash = SlashCommand(bot, sync_commands=True) @@ -504,7 +512,10 @@ async def remind_resume(ctx: SlashContext): ], ) async def remind_add( - ctx: SlashContext, message_date: str, message_reason: str, different_channel: discord.TextChannel = None + ctx: SlashContext, + message_date: str, + message_reason: str, + different_channel: discord.TextChannel = None, ): """Add a new reminder. You can add a date and message. diff --git a/pyproject.toml b/pyproject.toml index 0da0c89..e91ba06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,5 +41,5 @@ types-dateparser = "^1.0.10" requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" -[tool.black] -line-length = 119 +[tool.isort] +profile = "black" diff --git a/tests/test_discord_reminder_bot.py b/tests/test_discord_reminder_bot.py index 1f35720..507536d 100644 --- a/tests/test_discord_reminder_bot.py +++ b/tests/test_discord_reminder_bot.py @@ -8,6 +8,7 @@ import dateparser import pytz from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore from apscheduler.schedulers.asyncio import AsyncIOScheduler + from discord_reminder_bot import __version__ from discord_reminder_bot.main import calc_countdown, send_to_discord