Skip to content

Commit

Permalink
[Lint] Black Run
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Apr 17, 2024
1 parent 3b53cc6 commit 60b567d
Show file tree
Hide file tree
Showing 34 changed files with 35 additions and 5 deletions.
1 change: 1 addition & 0 deletions CLI/DSSAUpdater/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Licensed under the GNU General Public License
See license.md
"""

import pathlib
import sys
import json
Expand Down
1 change: 1 addition & 0 deletions CLI/EDDBFormatter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Licensed under the GNU General Public License
See license.md
"""

import os.path
import json
import sys
Expand Down
1 change: 1 addition & 0 deletions halpybot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from .halpyconfig import HalpyConfig

# this is where the magic happens. 😇
Expand Down
1 change: 1 addition & 0 deletions halpybot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Licensed under the GNU General Public License
See license.md
"""

import asyncio
import os
import signal
Expand Down
7 changes: 4 additions & 3 deletions halpybot/commands/caseutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import re
from typing import List, Optional
from attr.converters import to_bool
Expand Down Expand Up @@ -745,9 +746,9 @@ async def cmd_editnote(ctx: Context, args: List[str], case: Case):
return await ctx.reply("Invalid Note Index provided!")
await ctx.reply(f"Editing line {target_line!r} to the provided text.")

case.case_notes[
note_index
] = f"{' '.join(args[2:])} - {ctx.sender} ({now(tz='UTC')})"
case.case_notes[note_index] = (
f"{' '.join(args[2:])} - {ctx.sender} ({now(tz='UTC')})"
)
return await ctx.reply(f"Notes for case {case.board_id} updated.")


Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/drill.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from typing import List
from ..packages.command import Commands, get_help_text
from ..packages.checks import Drilled, needs_permission, in_channel
Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/edsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import math
import re
from typing import List
Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/manual_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import asyncio
from typing import List
from loguru import logger
Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import re
import random
from typing import List
Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from typing import List
import pendulum
from loguru import logger
Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import json
import time
from typing import List
Expand Down
1 change: 0 additions & 1 deletion halpybot/commands/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
See license.md
"""


import os
import signal
from typing import List
Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/spansh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from typing import List
from loguru import logger
from halpybot import config
Expand Down
1 change: 1 addition & 0 deletions halpybot/commands/userinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from typing import List
from sqlalchemy.engine import Engine
from halpybot.packages.command.commandhandler import get_help_text
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/announcer/announcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
See license.md
"""

from __future__ import annotations
import json
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/board/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
Licensed under the GNU General Public License
See license.md
"""

from __future__ import annotations

import enum
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/case/caseutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from __future__ import annotations
import re
from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/ircclient/halpybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import json
import os
import signal
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/models/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from __future__ import annotations
from typing import Optional, List, TYPE_CHECKING
from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/models/seal.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from typing import Optional, List, Tuple
from attrs import define
from .case import Platform
Expand Down
1 change: 0 additions & 1 deletion halpybot/packages/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
See license.md
"""


from __future__ import annotations
from typing import Optional, Set, TYPE_CHECKING, List
from attrs import define
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/seals/userinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from sqlalchemy.engine import Engine
from sqlalchemy import text
from ..models import Seal, Platform
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import functools
from typing import List
from loguru import logger
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/utils/shorten.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import aiohttp
from loguru import logger
from halpybot import config
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/utils/spansh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import string
from typing import List
from urllib.parse import quote
Expand Down
1 change: 1 addition & 0 deletions halpybot/packages/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from __future__ import annotations
import re
import json
Expand Down
1 change: 1 addition & 0 deletions halpybot/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
See license.md
"""

from typing import Type, Union
from loguru import logger
import pendulum
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import os
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/mock_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Licensed under the GNU General Public License
See license.md
"""

from halpybot.packages.models import Platform, Case, CaseType


Expand Down
1 change: 1 addition & 0 deletions tests/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

from halpybot.packages.ircclient import configure_client, HalpyBOT


Expand Down
1 change: 1 addition & 0 deletions tests/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import pytest

from halpybot import config
Expand Down
1 change: 1 addition & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import pytest
from halpybot.packages.command import Commands
from halpybot import config
Expand Down
1 change: 1 addition & 0 deletions tests/test_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Testing will always DISABLE offline mode. You must have access to a Seal-type DB for testing.
"""

import pytest
from halpybot.packages.command import Commands
from halpybot import config
Expand Down
1 change: 1 addition & 0 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Licensed under the GNU General Public License
See license.md
"""

import json
import aiohttp
from aiohttp import web
Expand Down

0 comments on commit 60b567d

Please sign in to comment.