Skip to content

Commit a5e9ad0

Browse files
authored
Merge branch 'master' into feat-dramatiq-transaction-support
2 parents 4746db6 + b838765 commit a5e9ad0

File tree

121 files changed

+1599
-965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+1599
-965
lines changed

.coveragerc36

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
[run]
55
branch = true
6-
omit =
6+
omit =
77
/tmp/*
88
*/tests/*
99
*/.venv/*
1010

1111

1212
[report]
13-
exclude_lines =
13+
exclude_lines =
1414
if TYPE_CHECKING:

.cursor/rules/core-architecture.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description:
3-
globs:
2+
description:
3+
globs:
44
alwaysApply: false
55
---
66
# Core Architecture

.cursor/rules/integrations-guide.mdc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description:
3-
globs:
2+
description:
3+
globs:
44
alwaysApply: false
55
---
66
# Integrations Guide
@@ -133,10 +133,10 @@ from sentry_sdk.integrations import Integration
133133

134134
class MyIntegration(Integration):
135135
identifier = "my_integration"
136-
136+
137137
def __init__(self, param=None):
138138
self.param = param
139-
139+
140140
@staticmethod
141141
def setup_once():
142142
# Install hooks, monkey patches, etc.

.cursor/rules/project-overview.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description:
3-
globs:
2+
description:
3+
globs:
44
alwaysApply: false
55
---
66
# Sentry Python SDK - Project Overview

.cursor/rules/quick-reference.mdc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description:
3-
globs:
2+
description:
3+
globs:
44
alwaysApply: false
55
---
66
# Quick Reference
@@ -44,7 +44,7 @@ tox -e py3.12-django-v5.2.3
4444

4545
### Code Quality
4646

47-
Our `linters` tox environment runs `black` for formatting, `flake8` for linting and `mypy` for type checking.
47+
Our `linters` tox environment runs `ruff-format` for formatting, `ruff-check` for linting and `mypy` for type checking.
4848

4949
```bash
5050
tox -e linters

.cursor/rules/testing-guide.mdc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description:
3-
globs:
2+
description:
3+
globs:
44
alwaysApply: false
55
---
66
# Testing Guide
@@ -65,10 +65,10 @@ def test_flask_integration(sentry_init, capture_events):
6565
# Test setup
6666
sentry_init(integrations=[FlaskIntegration()])
6767
events = capture_events()
68-
68+
6969
# Test execution
7070
# ... test code ...
71-
71+
7272
# Assertions
7373
assert len(events) == 1
7474
assert events[0]["exception"]["values"][0]["type"] == "ValueError"

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Formatting commits to ignore in git blame
2+
afea4a017bf13f78e82f725ea9d6a56a8e02cb34
3+
23a340a9dca60eea36de456def70c00952a33556

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040

4141
steps:
4242
- uses: actions/[email protected]
43+
with:
44+
ref: ${{ github.event.pull_request.head.sha }}
45+
fetch-depth: 0
4346
- uses: actions/setup-python@v6
4447
with:
4548
python-version: 3.12

.github/workflows/test-integrations-ai.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ env:
2222
CACHED_BUILD_PATHS: |
2323
${{ github.workspace }}/dist-serverless
2424
jobs:
25-
test-ai-pinned:
26-
name: AI (pinned)
25+
test-ai:
26+
name: AI
2727
timeout-minutes: 30
2828
runs-on: ${{ matrix.os }}
2929
strategy:
@@ -50,42 +50,42 @@ jobs:
5050
- name: Erase coverage
5151
run: |
5252
coverage erase
53-
- name: Test anthropic pinned
53+
- name: Test anthropic
5454
run: |
5555
set -x # print commands that are executed
56-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-anthropic"
57-
- name: Test cohere pinned
56+
./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic"
57+
- name: Test cohere
5858
run: |
5959
set -x # print commands that are executed
60-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cohere"
61-
- name: Test langchain-base pinned
60+
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere"
61+
- name: Test langchain-base
6262
run: |
6363
set -x # print commands that are executed
64-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain-base"
65-
- name: Test langchain-notiktoken pinned
64+
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-base"
65+
- name: Test langchain-notiktoken
6666
run: |
6767
set -x # print commands that are executed
68-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain-notiktoken"
69-
- name: Test openai-base pinned
68+
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-notiktoken"
69+
- name: Test openai-base
7070
run: |
7171
set -x # print commands that are executed
72-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai-base"
73-
- name: Test openai-notiktoken pinned
72+
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-base"
73+
- name: Test openai-notiktoken
7474
run: |
7575
set -x # print commands that are executed
76-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai-notiktoken"
77-
- name: Test langgraph pinned
76+
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken"
77+
- name: Test langgraph
7878
run: |
7979
set -x # print commands that are executed
80-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langgraph"
81-
- name: Test openai_agents pinned
80+
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
81+
- name: Test openai_agents
8282
run: |
8383
set -x # print commands that are executed
84-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai_agents"
85-
- name: Test huggingface_hub pinned
84+
./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents"
85+
- name: Test huggingface_hub
8686
run: |
8787
set -x # print commands that are executed
88-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub"
88+
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub"
8989
- name: Generate coverage XML (Python 3.6)
9090
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
9191
run: |
@@ -114,13 +114,13 @@ jobs:
114114
files: .junitxml
115115
verbose: true
116116
check_required_tests:
117-
name: All pinned AI tests passed
118-
needs: test-ai-pinned
117+
name: All AI tests passed
118+
needs: test-ai
119119
# Always run this, even if a dependent job failed
120120
if: always()
121121
runs-on: ubuntu-22.04
122122
steps:
123123
- name: Check for failures
124-
if: needs.test-ai-pinned.result != 'success'
124+
if: needs.test-ai.result != 'success'
125125
run: |
126126
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

.github/workflows/test-integrations-cloud.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ env:
2222
CACHED_BUILD_PATHS: |
2323
${{ github.workspace }}/dist-serverless
2424
jobs:
25-
test-cloud-pinned:
26-
name: Cloud (pinned)
25+
test-cloud:
26+
name: Cloud
2727
timeout-minutes: 30
2828
runs-on: ${{ matrix.os }}
2929
strategy:
@@ -54,26 +54,26 @@ jobs:
5454
- name: Erase coverage
5555
run: |
5656
coverage erase
57-
- name: Test aws_lambda pinned
57+
- name: Test aws_lambda
5858
run: |
5959
set -x # print commands that are executed
60-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda"
61-
- name: Test boto3 pinned
60+
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda"
61+
- name: Test boto3
6262
run: |
6363
set -x # print commands that are executed
64-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3"
65-
- name: Test chalice pinned
64+
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3"
65+
- name: Test chalice
6666
run: |
6767
set -x # print commands that are executed
68-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice"
69-
- name: Test cloud_resource_context pinned
68+
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice"
69+
- name: Test cloud_resource_context
7070
run: |
7171
set -x # print commands that are executed
72-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context"
73-
- name: Test gcp pinned
72+
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context"
73+
- name: Test gcp
7474
run: |
7575
set -x # print commands that are executed
76-
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp"
76+
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp"
7777
- name: Generate coverage XML (Python 3.6)
7878
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
7979
run: |
@@ -102,13 +102,13 @@ jobs:
102102
files: .junitxml
103103
verbose: true
104104
check_required_tests:
105-
name: All pinned Cloud tests passed
106-
needs: test-cloud-pinned
105+
name: All Cloud tests passed
106+
needs: test-cloud
107107
# Always run this, even if a dependent job failed
108108
if: always()
109109
runs-on: ubuntu-22.04
110110
steps:
111111
- name: Check for failures
112-
if: needs.test-cloud-pinned.result != 'success'
112+
if: needs.test-cloud.result != 'success'
113113
run: |
114114
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

0 commit comments

Comments
 (0)