Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
- name: Ruff format
run: uv run ruff format --check tests sentry_sdk

- name: Typos
run: uv run typos --hidden

- name: Find raise from None
run: uv run python scripts/find_raise_from_none.py

Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ repos:
language: system
types_or: [python, pyi]
require_serial: true
- id: typos
name: typos
entry: uv run typos --force-exclude
language: system
types: [text]
require_serial: true
2 changes: 1 addition & 1 deletion MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Looking to upgrade from Sentry SDK 1.x to 2.x? Here's a comprehensive list of wh
## Changed

- The Pyramid integration will not capture errors that might happen in `authenticated_userid()` in a custom `AuthenticationPolicy` class.
- The method `need_code_loation` of the `MetricsAggregator` was renamed to `need_code_location`.
- A typo in the name of the `MetricsAggregator` method `need_code_location` was fixed.
Comment thread
alexander-alderman-webb marked this conversation as resolved.
Resolved
- The `BackgroundWorker` thread used to process events was renamed from `raven-sentry.BackgroundWorker` to `sentry-sdk.BackgroundWorker`.
- The `reraise` function was moved from `sentry_sdk._compat` to `sentry_sdk.utils`.
- The `_ScopeManager` was moved from `sentry_sdk.hub` to `sentry_sdk.scope`.
Expand Down
21 changes: 21 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Spell checker config, see https://github.com/crate-ci/typos/blob/master/docs/reference.md

[default]
extend-ignore-re = [
"baGGage", # tests that header matching ignores case
"deprecat\\(", # regex prefix in .github/release.yml
]

[default.extend-words]
GAE = "GAE" # Google App Engine
certifi = "certifi" # package name
# Chunked strings and key prefixes in tests
abl = "abl"
hel = "hel"

[files]
extend-exclude = [
".git/",
"CHANGELOG.md", # historical release notes
"checkouts/", # third-party submodules
]
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dev = [
"coverage[toml]",
"pre-commit",
"ruff",
"typos",
]

toxgen = [
Expand Down
4 changes: 2 additions & 2 deletions tests/integrations/aiohttp/test_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ async def hello(request):

@pytest.mark.tests_internal_exceptions
@pytest.mark.asyncio
async def test_tracing_unparseable_url(sentry_init, aiohttp_client, capture_events):
async def test_tracing_unparsable_url(sentry_init, aiohttp_client, capture_events):
sentry_init(integrations=[AioHttpIntegration()], traces_sample_rate=1.0)

async def hello(request):
Expand All @@ -400,7 +400,7 @@ async def hello(request):
assert event["type"] == "transaction"
assert (
event["transaction"]
== "tests.integrations.aiohttp.test_aiohttp.test_tracing_unparseable_url.<locals>.hello"
== "tests.integrations.aiohttp.test_aiohttp.test_tracing_unparsable_url.<locals>.hello"
)


Expand Down
16 changes: 16 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading