Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaree committed Jan 16, 2021
1 parent 8e27e30 commit 584ca31
Show file tree
Hide file tree
Showing 40 changed files with 43 additions and 6 deletions.
1 change: 1 addition & 0 deletions antispam/antispam.py
Expand Up @@ -4,6 +4,7 @@
from typing import Optional

import discord

from redbot.core import Config, commands
from redbot.core.commands.converter import TimedeltaConverter
from redbot.core.utils.chat_formatting import humanize_timedelta, pagify
Expand Down
1 change: 1 addition & 0 deletions botlistspost/botlistspost.py
Expand Up @@ -6,6 +6,7 @@

import aiohttp
import discord

from redbot.core import Config, commands
from redbot.core.utils.chat_formatting import humanize_list, pagify
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu
Expand Down
1 change: 1 addition & 0 deletions commandstats/commandstats.py
Expand Up @@ -7,6 +7,7 @@
from typing import Counter, Optional

import discord

import pandas
from redbot.core import Config, commands

Expand Down
1 change: 1 addition & 0 deletions commandstats/menus.py
Expand Up @@ -3,6 +3,7 @@
from typing import Any, Dict, Iterable, Optional

import discord

import tabulate
from redbot.core import commands
from redbot.core.utils.chat_formatting import box, escape, humanize_number
Expand Down
1 change: 1 addition & 0 deletions covid/covid.py
Expand Up @@ -3,6 +3,7 @@

import aiohttp
import discord

from redbot.core import commands
from redbot.core.utils.chat_formatting import humanize_number

Expand Down
1 change: 1 addition & 0 deletions covid/menus.py
Expand Up @@ -3,6 +3,7 @@
from typing import Any, Dict, Iterable, Optional

import discord

import validators
from redbot.core import commands
from redbot.core.utils.chat_formatting import humanize_number
Expand Down
1 change: 1 addition & 0 deletions dankmemer/dankmemer.py
Expand Up @@ -6,6 +6,7 @@

import aiohttp
import discord

import validators
from redbot.core import Config, commands
from redbot.core.utils.predicates import MessagePredicate
Expand Down
1 change: 1 addition & 0 deletions dminvites/dminvites.py
@@ -1,4 +1,5 @@
import discord

from redbot.core import Config, commands
from redbot.core.utils.common_filters import INVITE_URL_RE

Expand Down
1 change: 1 addition & 0 deletions embedcreator/embedcreator.py
Expand Up @@ -5,6 +5,7 @@
from typing import Optional

import discord

from redbot.core import Config, commands

from .embedmixin import EmbedMixin
Expand Down
1 change: 1 addition & 0 deletions embedcreator/globalembeds.py
Expand Up @@ -2,6 +2,7 @@
from typing import Optional

import discord

from redbot.core import commands
from redbot.core.utils.chat_formatting import humanize_list, pagify
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu
Expand Down
1 change: 1 addition & 0 deletions embedcreator/sending.py
Expand Up @@ -3,6 +3,7 @@
from typing import Optional

import discord

from redbot.core import commands

from .abc import MixinMeta
Expand Down
1 change: 1 addition & 0 deletions embedcreator/storing.py
Expand Up @@ -2,6 +2,7 @@
from typing import Optional

import discord

from redbot.core import commands

from .abc import MixinMeta
Expand Down
3 changes: 1 addition & 2 deletions embedcreator/update.py
Expand Up @@ -2,9 +2,8 @@
from typing import Optional

import discord

from redbot.core import commands
from redbot.core.utils.chat_formatting import humanize_list, pagify
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu

from .abc import MixinMeta
from .embedmixin import embed
Expand Down
3 changes: 2 additions & 1 deletion embedcreator/utils.py
@@ -1,9 +1,10 @@
import json
import traceback
from typing import Optional
from io import StringIO
from typing import Optional

import discord

from redbot.core import commands
from redbot.core.utils.chat_formatting import humanize_list, pagify
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu
Expand Down
1 change: 1 addition & 0 deletions faceit/faceit.py
Expand Up @@ -4,6 +4,7 @@

import aiohttp
import discord

from redbot.core import Config, commands
from redbot.core.utils.chat_formatting import humanize_timedelta
from redbot.core.utils.menus import DEFAULT_CONTROLS, close_menu, menu, next_page, prev_page
Expand Down
1 change: 1 addition & 0 deletions faceit/funcs.py
@@ -1,6 +1,7 @@
import contextlib

import discord

from redbot.core import commands
from redbot.core.utils.menus import menu

Expand Down
1 change: 1 addition & 0 deletions forward/forward.py
@@ -1,4 +1,5 @@
import discord

from redbot.core import Config, checks, commands
from redbot.core.utils.chat_formatting import humanize_list

Expand Down
1 change: 1 addition & 0 deletions joinmessage/joinmessage.py
@@ -1,6 +1,7 @@
import logging

import discord

from redbot.core import Config, commands

log = logging.getLogger("red.flare.joinmessage")
Expand Down
6 changes: 3 additions & 3 deletions make.bat
Expand Up @@ -22,9 +22,9 @@ if [!DIFF!]==[] (
goto %1

:reformat
py -m autoflake --in-place --imports=aiohttp,discord,redbot !DIFF! || goto :eof
py -m isort !DIFF! || goto :eof
py -m black !DIFF!
autoflake --in-place --imports=aiohttp,discord,redbot !DIFF! || goto :eof
isort !DIFF! || goto :eof
black !DIFF!
goto :eof

:stylecheck
Expand Down
1 change: 1 addition & 0 deletions mod/mod.py
Expand Up @@ -4,6 +4,7 @@
from typing import Literal, Optional

import discord

from redbot.cogs.mod import Mod as ModClass
from redbot.core import Config, checks, commands, modlog
from redbot.core.commands.converter import TimedeltaConverter
Expand Down
1 change: 1 addition & 0 deletions news/menus.py
Expand Up @@ -2,6 +2,7 @@
from typing import Any, Dict, Iterable, Optional

import discord

import iso8601
import validators
from redbot.core import commands
Expand Down
1 change: 1 addition & 0 deletions news/news.py
@@ -1,4 +1,5 @@
import aiohttp

from redbot.core import commands

from .menus import ArticleFormat, GenericMenu
Expand Down
1 change: 1 addition & 0 deletions r6/r6.py
Expand Up @@ -2,6 +2,7 @@
from io import BytesIO

import discord

import r6statsapi
from redbot.core import Config, checks, commands
from redbot.core.utils.chat_formatting import humanize_timedelta
Expand Down
1 change: 1 addition & 0 deletions r6/stats.py
Expand Up @@ -3,6 +3,7 @@

import aiohttp
import discord

import r6statsapi
from PIL import Image, ImageDraw, ImageFont
from redbot.core.data_manager import bundled_data_path
Expand Down
1 change: 1 addition & 0 deletions redditpost/redditpost.py
Expand Up @@ -7,6 +7,7 @@

import aiohttp
import discord

import tabulate
import validators
from redbot.core import Config, commands
Expand Down
1 change: 1 addition & 0 deletions serverlock/serverlock.py
@@ -1,4 +1,5 @@
import discord

import jsonpickle
from redbot.core import Config, commands

Expand Down
1 change: 1 addition & 0 deletions simleague/core.py
Expand Up @@ -4,6 +4,7 @@

import aiohttp
import discord

from motor.motor_asyncio import AsyncIOMotorClient
from PIL import Image, ImageDraw, ImageFont, ImageOps
from redbot.core.data_manager import bundled_data_path
Expand Down
1 change: 1 addition & 0 deletions simleague/simleague.py
Expand Up @@ -7,6 +7,7 @@

import aiohttp
import discord

from redbot.core import Config, bank, checks, commands
from redbot.core.utils.chat_formatting import box
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu
Expand Down
1 change: 1 addition & 0 deletions simleague/simset.py
@@ -1,4 +1,5 @@
import discord

from redbot.core import checks, commands
from redbot.core.utils.chat_formatting import box

Expand Down
1 change: 1 addition & 0 deletions simleague/stats.py
@@ -1,4 +1,5 @@
import discord

from redbot.core import commands

from .abc import MixinMeta
Expand Down
1 change: 1 addition & 0 deletions simleague/teamset.py
@@ -1,4 +1,5 @@
import discord

import validators
from redbot.core import checks, commands

Expand Down
1 change: 1 addition & 0 deletions snipe/snipe.py
Expand Up @@ -4,6 +4,7 @@
from typing import Optional

import discord

from redbot.core import Config, checks, commands
from redbot.core.commands.converter import TimedeltaConverter

Expand Down
1 change: 1 addition & 0 deletions stickbugged/stickbugged.py
Expand Up @@ -7,6 +7,7 @@

import aiohttp
import discord

from gsbl.stick_bug import StickBug
from PIL import Image
from redbot.core import commands
Expand Down
1 change: 1 addition & 0 deletions tips/tips.py
Expand Up @@ -2,6 +2,7 @@
import random

import discord

from redbot.core import commands
from redbot.core.config import Config
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu
Expand Down
1 change: 1 addition & 0 deletions unbelievaboat/checks.py
@@ -1,4 +1,5 @@
import discord

from redbot.core import bank, commands


Expand Down
1 change: 1 addition & 0 deletions unbelievaboat/roulette.py
Expand Up @@ -3,6 +3,7 @@
import random

import discord

import tabulate
from redbot.core import bank, checks, commands
from redbot.core.errors import BalanceTooHigh
Expand Down
1 change: 1 addition & 0 deletions unbelievaboat/settings.py
@@ -1,6 +1,7 @@
import datetime

import discord

from redbot.core import commands
from redbot.core.utils.chat_formatting import humanize_number, humanize_timedelta
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu
Expand Down
1 change: 1 addition & 0 deletions unbelievaboat/unbelievaboat.py
Expand Up @@ -5,6 +5,7 @@
from typing import Literal, Optional

import discord

import tabulate
from redbot.core import Config, bank, checks, commands
from redbot.core.errors import BalanceTooHigh
Expand Down
1 change: 1 addition & 0 deletions unbelievaboat/wallet.py
@@ -1,6 +1,7 @@
from typing import Union

import discord

from redbot.core import bank, commands
from redbot.core.errors import BalanceTooHigh
from redbot.core.utils.chat_formatting import box, humanize_number
Expand Down
1 change: 1 addition & 0 deletions userinfo/userinfo.py
@@ -1,6 +1,7 @@
import logging

import discord

from redbot.core import bank, commands
from redbot.core.utils import AsyncIter
from redbot.core.utils.chat_formatting import humanize_number
Expand Down

0 comments on commit 584ca31

Please sign in to comment.