Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12 Upgrade #257

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake . --impure
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,10 @@ tmp/
*.sqlite3

/resources/rooms/images
general.txt
general.txt

# Nix
/result
/.direnv
/.devenv
/.pre-commit-config.yaml
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion apollo.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,10 @@ async def on_command_error(ctx: Context[Bot], error: Exception):
raise reraise


if __name__ == "__main__":
def entrypoint():
"""Entrypoint for poetry script"""
asyncio.run(main())


if __name__ == "__main__":
entrypoint()
4 changes: 3 additions & 1 deletion cogs/commands/announce.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ async def preview_edit_menu(

class AcceptButton(ui.Button):
def __init__(self):
super().__init__(label="Accept", emoji="✅", style=discord.ButtonStyle.green)
super().__init__(
label="Accept", emoji="✅", style=discord.ButtonStyle.green
)

async def callback(self, interaction: Interaction):
global success
Expand Down
4 changes: 3 additions & 1 deletion cogs/commands/widen.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
Widens the last or given text message.
"""

SHORT_HELP_TEXT = """Widens the last or given text message."""
SHORT_HELP_TEXT = (
"""Widens the last or given text message."""
)

WIDE_MAP = dict((i, i + 0xFEE0) for i in range(0x21, 0x7F))
WIDE_MAP[0x20] = 0x3000
Expand Down
Loading
Loading