Skip to content

Commit 7c90371

Browse files
chore: Fix typos (#8241)
Fixes clear-cut misspellings across comments, docstrings, script output, and a few local or test-only identifiers. Found with `codespell` and `typos`, and every hit was checked by hand. Nothing public changes. The renamed identifiers are a local variable in `sentry_sdk/utils.py` (`should_supress_context`), a local in `scripts/find_raise_from_none.py`, a test-local variable, and three test function names. These were left alone on purpose: - `dependant`: FastAPI's own API name - `checkin`: Sentry crons terminology - `deprecat`: regex prefix in `.github/release.yml` - `need_code_loation`: old method name quoted in `MIGRATION_GUIDE.md` - `baGGage`: tests that header matching ignores case - Chunked test strings like `"hel"` and `"ons"` - Typos in `CHANGELOG.md`, since those are historical release notes <!-- junior-request-attribution:start --> via @sentrivana. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0BTREZTS2Z%3A1794390864.677739 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BTREZTS2Z%3A1794390864.677739) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BTREZTS2Z%3A1794390864.677739/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Ivana Kellyer <131587164+sentrivana@users.noreply.github.com>
1 parent f6d6ce9 commit 7c90371

26 files changed

Lines changed: 46 additions & 46 deletions

‎scripts/aws/aws-attach-layer-to-lambda-function.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ echo "Getting ARN of newest Sentry lambda layer..."
2222
LAYER_ARN=$(aws lambda list-layer-versions --layer-name SentryPythonServerlessSDK-local-dev --query "LayerVersions[0].LayerVersionArn" | tr -d '"')
2323
echo "Done getting ARN of newest Sentry lambda layer $LAYER_ARN."
2424

25-
echo "Attaching Lamba layer to function $FUNCTION_NAME..."
25+
echo "Attaching Lambda layer to function $FUNCTION_NAME..."
2626
echo "Warning: This remove all other layers!"
2727
aws lambda update-function-configuration \
2828
--function-name "$FUNCTION_NAME" \
2929
--layers "$LAYER_ARN" \
3030
--no-cli-pager
31-
echo "Done attaching Lamba layer to function '$FUNCTION_NAME'."
31+
echo "Done attaching Lambda layer to function '$FUNCTION_NAME'."
3232

3333
echo "All done. Have a nice day!"

‎scripts/build_aws_lambda_layer.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def install_python_packages(self) -> None:
5656
"pip",
5757
"install",
5858
"--no-cache-dir", # always access PyPI
59-
"--no-deps", # the right depencencies have been installed in the call above
59+
"--no-deps", # the right dependencies have been installed in the call above
6060
"--quiet",
6161
sentry_python_sdk,
6262
"--target",

‎scripts/find_raise_from_none.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def main():
4949
}
5050

5151
raise_from_none_count = {
52-
file: len(occurences)
53-
for file, occurences in RaiseFromNoneVisitor.line_numbers.items()
52+
file: len(occurrences)
53+
for file, occurrences in RaiseFromNoneVisitor.line_numbers.items()
5454
}
5555
if raise_from_none_count != ignored_raises:
5656
exc = Exception("Detected unexpected raise ... from None.")

‎scripts/populate_tox/populate_tox.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def fetch_package_dependencies(
215215
print(f" Resolving dependencies: {package}=={version} on Python {python_version}")
216216

217217
# Removing non-report output with -qqq may be brittle, but avoids file I/O.
218-
# Currently -qqq supresses all non-report output that would break json.loads().
218+
# Currently -qqq suppresses all non-report output that would break json.loads().
219219
result = subprocess.run(
220220
[
221221
"uv",

‎scripts/split_tox_gh_actions/split_tox_gh_actions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This way each group of frameworks defined in tox.ini will get its own GitHub actions configuration file
55
which allows them to be run in parallel in GitHub actions.
66
7-
This will generate/update several configuration files, that need to be commited to Git afterwards.
7+
This will generate/update several configuration files, that need to be committed to Git afterwards.
88
Whenever tox.ini is changed, this script needs to be run.
99
1010
Usage:

‎sentry_sdk/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class _Client(BaseClient):
539539
the client options as keyword arguments and optionally the DSN as first
540540
argument.
541541
542-
Alias of :py:class:`sentry_sdk.Client`. (Was created for better intelisense support)
542+
Alias of :py:class:`sentry_sdk.Client`. (Was created for better IntelliSense support)
543543
"""
544544

545545
def __init__(self, *args: "Any", **kwargs: "Any") -> None:

‎sentry_sdk/integrations/django/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def install_sql_hook() -> None:
844844
from django.db.backends.util import CursorWrapper
845845

846846
try:
847-
# django 1.6 and 1.7 compatability
847+
# django 1.6 and 1.7 compatibility
848848
from django.db.backends import BaseDatabaseWrapper
849849
except ImportError:
850850
# django 1.8 or later

‎sentry_sdk/integrations/django/signals_handlers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _get_receiver_name(receiver: "Callable[..., Any]") -> str:
2222
name = receiver.__name__
2323
elif hasattr(
2424
receiver, "func"
25-
): # certain functions (like partials) dont have a name
25+
): # certain functions (like partials) don't have a name
2626
if hasattr(receiver, "func") and hasattr(receiver.func, "__name__"):
2727
name = "partial(<function " + receiver.func.__name__ + ">)"
2828

‎sentry_sdk/integrations/huggingface_hub.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def new_huggingface_task(*args: "Any", **kwargs: "Any") -> "Any":
8787
prompt = args[1]
8888

8989
if prompt is None:
90-
# invalid call, dont instrument, let it return error
90+
# invalid call, don't instrument, let it return error
9191
return f(*args, **kwargs)
9292

9393
hf_client = args[0]

‎sentry_sdk/integrations/openai_agents/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class OpenAIAgentsIntegration(Integration):
7878
- `DEFAULT_AGENT_RUNNER.run()` and `DEFAULT_AGENT_RUNNER.run_streamed()` are patched in `_patch_runner()` with `_create_run_wrapper()` and `_create_run_streamed_wrapper()`, respectively.
7979
3. In a loop, the agent repeatedly calls the Responses API, maintaining a conversation history that includes previous messages and tool results, which is passed to each call.
8080
- A Model instance is created at the start of the loop by calling the `Runner._get_model()`. We patch the Model instance using `patches._get_model()`.
81-
- Available tools are also deteremined at the start of the loop, with `Runner._get_all_tools()`. We patch Tool instances by iterating through the returned tools in `patches._get_all_tools()`.
81+
- Available tools are also determined at the start of the loop, with `Runner._get_all_tools()`. We patch Tool instances by iterating through the returned tools in `patches._get_all_tools()`.
8282
- In each loop iteration, `run_single_turn()` or `run_single_turn_streamed()` is responsible for calling the Responses API, patched with `patches._run_single_turn()` and `patches._run_single_turn_streamed()`.
8383
4. On loop termination, `RunImpl.execute_final_output()` is called. The function is patched with `patches._execute_final_output()`.
8484

0 commit comments

Comments
 (0)