Skip to content

Commit 0ed105f

Browse files
Merge pull request #70 from discord-modmail/chore/fix-up-imports
Use two lines after all imports instead of 1 line
2 parents d7c41b6 + 1537a5c commit 0ed105f

File tree

16 files changed

+23
-5
lines changed

16 files changed

+23
-5
lines changed

docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
- `bot.start()` can also be used if already in a running event loop. Keep in mind using it will require
2323
handling loop errors, as run() does this automatically.
2424

25+
### Internal
26+
27+
- Code style: two blank lines after imports instead of one. (#70)
2528

2629

2730
## [0.1.0] - 2021-08-13

modmail/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from modmail.log import ModmailLogger
88

9+
910
logging.TRACE = 5
1011
logging.NOTICE = 25
1112
logging.addLevelName(logging.TRACE, "TRACE")

modmail/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from modmail.log import ModmailLogger
55
from modmail.utils.embeds import patch_embed
66

7+
78
try:
89
# noinspection PyUnresolvedReferences
910
from colorama import init

modmail/bot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from modmail.utils.extensions import EXTENSIONS, NO_UNLOAD, walk_extensions
1717
from modmail.utils.plugins import PLUGINS, walk_plugins
1818

19+
1920
REQUIRED_INTENTS = Intents(
2021
guilds=True,
2122
messages=True,

modmail/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from pydantic.env_settings import SettingsSourceCallable
1919
from pydantic.types import conint
2020

21+
2122
log = logging.getLogger(__name__)
2223

2324
CONFIG_PATHS: list = [

modmail/extensions/extension_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from modmail.utils.extensions import EXTENSIONS, NO_UNLOAD, unqualify, walk_extensions
1818
from modmail.utils.pagination import ButtonPaginator
1919

20+
2021
log: ModmailLogger = logging.getLogger(__name__)
2122

2223

modmail/extensions/meta.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from modmail.log import ModmailLogger
77
from modmail.utils.cogs import ExtMetadata, ModmailCog
88

9+
910
log: ModmailLogger = logging.getLogger(__name__)
1011

1112
EXT_METADATA = ExtMetadata()

modmail/extensions/plugin_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from modmail.utils.cogs import BotModes, ExtMetadata
77
from modmail.utils.plugins import PLUGINS, walk_plugins
88

9+
910
EXT_METADATA = ExtMetadata(load_if_mode=BotModes.PRODUCTION)
1011

1112

modmail/extensions/utils/paginator_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from modmail.utils.cogs import ModmailCog
1010

11+
1112
if TYPE_CHECKING:
1213
from discord import Interaction
1314

modmail/plugin_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from modmail.log import ModmailLogger
33
from modmail.utils.cogs import BotModes, ExtMetadata, ModmailCog
44

5+
56
__all__ = ["PluginCog", ModmailBot, ModmailLogger, BotModes, ExtMetadata]
67

78

0 commit comments

Comments
 (0)