Use the Black profile for isort

This commit is contained in:
2022-02-10 15:42:03 +01:00
parent 816708cc63
commit 88e981e917
3 changed files with 17 additions and 5 deletions

View File

@ -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.

View File

@ -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"

View File

@ -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