Skip to content

Commit c1a0962

Browse files
committed
ci(ruff): linter fixes
1 parent 53d98b2 commit c1a0962

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

cogs/__dev__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
from discord import app_commands
77
from discord.ext import commands
88

9-
from config import COMMUNITY_GUILD_ID
109
from utils.tools import is_developer
1110

11+
from config import COMMUNITY_GUILD_ID
12+
1213
if TYPE_CHECKING:
1314
from bot import RoboNerva
1415

cogs/__eval__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
from discord import app_commands
1515
from discord.ext import commands
1616

17-
from config import COMMUNITY_GUILD_ID
1817
from utils.tools import is_developer
1918
from utils.modals import EvalModal, ExecModal
2019

20+
from config import COMMUNITY_GUILD_ID
21+
2122
if TYPE_CHECKING:
2223
from bot import RoboNerva
2324

cogs/general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
from utils.cd import cooldown
1414

15+
from config import COMMUNITY_GUILD_ID
16+
1517
if TYPE_CHECKING:
1618
from bot import RoboNerva
1719

18-
from config import COMMUNITY_GUILD_ID
19-
2020

2121
class General(commands.Cog):
2222
def __init__(self, bot: RoboNerva):

cogs/help.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
from discord import app_commands
77
from discord.ext import commands
88

9-
from config import COMMUNITY_GUILD_ID
109
from utils.cd import cooldown
1110

11+
from config import COMMUNITY_GUILD_ID
12+
1213
if TYPE_CHECKING:
1314
from bot import RoboNerva
1415

launcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from telegram import Bot
1313

1414
from bot import RoboNerva
15+
1516
from config import MONGODB_URI, TELEGRAM_TOKEN
1617

1718
try:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ line-length = 85
3939
target-version = "py313"
4040

4141
[tool.ruff.lint.isort]
42-
section-order = ["future", "typing", "standard-library", "third-party", "first-party", "local-folder"]
42+
section-order = ["future", "typing", "standard-library", "third-party", "first-party", "local-folder", "config"]
4343
force-wrap-aliases = true
4444
combine-as-imports = true
4545
length-sort = true
4646

4747
[tool.ruff.lint.isort.sections]
4848
"typing" = ["typing"]
49+
"config" = ["config"]

utils/buttons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import discord
66
from discord import ui
77

8-
from config import VERIFIED_USER_ROLE_ID
9-
108
from .modals import VerificationModal
119

10+
from config import VERIFIED_USER_ROLE_ID
11+
1212
if TYPE_CHECKING:
1313
from motor import MotorCollection
1414

0 commit comments

Comments
 (0)