Skip to content

Commit b98f71a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 29a4489 commit b98f71a

23 files changed

+38
-15
lines changed

database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions for interacting with the database throughout the bot."""
2+
23
import motor.motor_asyncio
34

45
import constants

logs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Stores classes for storing log data and player stats"""
2+
23
from steam.steamid import SteamID
34

45
from database import BotCollection

logs/elo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Elo calculations, storage and utilities."""
2+
23
from difflib import SequenceMatcher
34
import math
45
from typing import Any

logs/elo_cog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This cog contains the elo cog with commands to configure elo and add missing logs."""
2+
23
import asyncio
34
import time
45

logs/logs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This cog contains the logs command and its subcommands."""
2+
23
import nextcord
34
from nextcord.ext import commands, application_checks
45
from nextcord.enums import ChannelType

logs/logstf_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""File storing the LogsAPI class, which is used to interact with the Logs.tf API."""
2+
23
import asyncio
34

45
import aiohttp

logs/searcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Implements the log searcher file, which takes the players from a team generation or moved back and searches for the log associated with the game that was played/being played."""
2+
23
import time
34
import traceback
45

logs/stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Cog that handles stats and showing stats to players."""
2+
23
from typing import Optional
34
import nextcord
45
from nextcord.ext import commands

menus/callbacks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains some useful callbacks for menus."""
2+
23
from typing import Callable, Any
34

45
from nextcord import Interaction

menus/templates.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions to build predefined for use around the bot."""
2+
23
from nextcord import ButtonStyle, Interaction, Embed
34
from nextcord.abc import GuildChannel
45
from nextcord.enums import ChannelType
@@ -79,9 +80,9 @@ async def send_channel_prompt(
7980
ValueError
8081
If required is True and no channel is selected for a entry.
8182
"""
82-
channel_selects: list[
83-
ChannelSelect
84-
] = [] # We'll go through this later to get the values
83+
channel_selects: list[ChannelSelect] = (
84+
[]
85+
) # We'll go through this later to get the values
8586
menu.clear_items()
8687
if interaction.response.is_done():
8788
await menu.edit(interaction)

0 commit comments

Comments
 (0)