Remove pylint stuff.
This commit is contained in:
@@ -5,7 +5,6 @@ from nextcord.ext import commands
|
|||||||
from sqlalchemy import exc, select
|
from sqlalchemy import exc, select
|
||||||
from sqlalchemy.orm import Session
|
from sqlalchemy.orm import Session
|
||||||
|
|
||||||
# pylint: disable=import-error
|
|
||||||
from cogs.submission.submission_views import SubmissionCreateButton
|
from cogs.submission.submission_views import SubmissionCreateButton
|
||||||
from database_setup.sql_data_classes import Category, CategoryGroup, engine
|
from database_setup.sql_data_classes import Category, CategoryGroup, engine
|
||||||
from utilities.utils import MAX_LINE_LENGTH, autofill_groups, send_highscore_message
|
from utilities.utils import MAX_LINE_LENGTH, autofill_groups, send_highscore_message
|
||||||
@@ -22,10 +21,8 @@ class CreateCog(commands.Cog, name="Create Cog"):
|
|||||||
async def create(self, interaction: nextcord.Interaction) -> None:
|
async def create(self, interaction: nextcord.Interaction) -> None:
|
||||||
"""Parent slash command for creating things. Never called."""
|
"""Parent slash command for creating things. Never called."""
|
||||||
|
|
||||||
# need all these arguments because discord command.
|
|
||||||
# pylint: disable=too-many-arguments
|
|
||||||
@create.subcommand(description="Create a new Category. Must not exist already in Group.")
|
@create.subcommand(description="Create a new Category. Must not exist already in Group.")
|
||||||
async def category( # noqa: PLR0913
|
async def category( # noqa: PLR0913 need all these arguments because discord command.
|
||||||
self,
|
self,
|
||||||
interaction: nextcord.Interaction,
|
interaction: nextcord.Interaction,
|
||||||
group_id: str = nextcord.SlashOption(name="group", description="Group to add Category to.", required=True),
|
group_id: str = nextcord.SlashOption(name="group", description="Group to add Category to.", required=True),
|
||||||
@@ -82,8 +79,6 @@ class CreateCog(commands.Cog, name="Create Cog"):
|
|||||||
f'"{category_name}" already exists in "{group.GroupName}". Please rename.', ephemeral=True
|
f'"{category_name}" already exists in "{group.GroupName}". Please rename.', ephemeral=True
|
||||||
)
|
)
|
||||||
|
|
||||||
# need all these arguments because discord command.
|
|
||||||
# pylint: disable=too-many-arguments
|
|
||||||
@create.subcommand(description="Create a new Category Group. Must not exist already for Guild.")
|
@create.subcommand(description="Create a new Category Group. Must not exist already for Guild.")
|
||||||
async def group(
|
async def group(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user