run pre-commit
This commit is contained in:
9 files changed
+11
-18
No files matched your search
@@ -1,7 +1,7 @@
|
||||
asyncio==3.4.*
|
||||
asyncpg==0.29.*
|
||||
discord.py==2.3.*
|
||||
psutil==5.9.*
|
||||
asyncpg==0.29.*
|
||||
pypandoc==1.13.*
|
||||
python-dotenv==1.0.*
|
||||
regex==2023.12.25
|
||||
|
||||
@@ -2,9 +2,8 @@ import asyncio
|
||||
from os import listdir
|
||||
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
from cogs.utils import embed_templates
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
class DevTools(commands.Cog):
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import traceback
|
||||
|
||||
import discord
|
||||
from cogs.utils import embed_templates
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
|
||||
from cogs.utils import embed_templates
|
||||
|
||||
|
||||
class Errors(commands.Cog):
|
||||
"""Error handlers for commands"""
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
import asyncio
|
||||
from datetime import datetime
|
||||
import secrets
|
||||
import urllib.parse
|
||||
from datetime import datetime
|
||||
|
||||
import discord
|
||||
from cogs.utils import embed_templates
|
||||
from cogs.utils import misc_utils
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext import tasks
|
||||
|
||||
from cogs.utils import embed_templates
|
||||
from cogs.utils import misc_utils
|
||||
|
||||
|
||||
class Galtinn(commands.Cog):
|
||||
"""Manage Galtinn membership and roles for users"""
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
|
||||
from cogs.utils import discord_utils
|
||||
from cogs.utils import embed_templates
|
||||
from cogs.utils import misc_utils
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
class Info(commands.Cog):
|
||||
|
||||
@@ -2,11 +2,10 @@ import discord
|
||||
import pypandoc
|
||||
import regex # This should be redundant as re now supports recursive patterns, but apparently it doesn't
|
||||
import requests
|
||||
from cogs.utils import embed_templates
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
|
||||
from cogs.utils import embed_templates
|
||||
|
||||
WIKI_BASE_URL = "https://viteboka.studentersamfundet.no"
|
||||
API_URL = f"{WIKI_BASE_URL}/w/api.php"
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import asyncpg
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from logger import BotLogger
|
||||
|
||||
# Load config file
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
aiohttp==3.9.*
|
||||
asyncpg==0.29.*
|
||||
fastapi==0.110.*
|
||||
jinja2==3.1.*
|
||||
asyncpg==0.29.*
|
||||
python-dotenv==1.0.*
|
||||
uvicorn==0.29.*
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
|
||||
import asyncpg
|
||||
import aiohttp
|
||||
import asyncpg
|
||||
from dotenv import load_dotenv
|
||||
from fastapi import FastAPI
|
||||
from fastapi import Request
|
||||
@@ -46,7 +46,6 @@ async def index():
|
||||
|
||||
@app.get("/callback")
|
||||
async def callback(request: Request, code: str, state: str):
|
||||
|
||||
# Check if user is pending verification
|
||||
verification = await app.state.pool.fetchrow(
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user