-
-
Notifications
You must be signed in to change notification settings - Fork 727
Default to using Python 3.14 for !eval #3406
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
Merged
+48
−34
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
63ed6dd
Re-order SupportedPythonVersions to default to using 3.14.0
jb3 1344368
Remove notice about 3.14 being pre-release
jb3 e81b0f1
Move snekbox operational and typing constants to a new file
jb3 4ff670c
Update EvalJob to fetch default Python version instead of hardcoding
jb3 92a0fb8
Stop using Literal ordering to determine default !eval Python version
jb3 7846303
Use last character of Python version to determine free threading
jb3 b2714a4
Update 3.13t to 3.14t
jb3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import re | ||
from typing import Literal | ||
|
||
from bot.constants import Channels, Roles | ||
|
||
ANSI_REGEX = re.compile(r"\N{ESC}\[[0-9;:]*m") | ||
ESCAPE_REGEX = re.compile("[`\u202E\u200B]{3,}") | ||
|
||
# Max to display in a codeblock before sending to a paste service | ||
# This also applies to text files | ||
MAX_OUTPUT_BLOCK_LINES = 10 | ||
MAX_OUTPUT_BLOCK_CHARS = 1000 | ||
|
||
# The Snekbox commands' whitelists and blacklists. | ||
NO_SNEKBOX_CHANNELS = (Channels.python_general,) | ||
NO_SNEKBOX_CATEGORIES = () | ||
SNEKBOX_ROLES = (Roles.helpers, Roles.moderators, Roles.admins, Roles.owners, Roles.python_community, Roles.partners) | ||
|
||
REDO_EMOJI = "\U0001f501" # :repeat: | ||
REDO_TIMEOUT = 30 | ||
|
||
SupportedPythonVersions = Literal["3.13", "3.14", "3.14t"] | ||
|
||
DEFAULT_PYTHON_VERSION: SupportedPythonVersions = "3.14" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.