Skip to content

Commit 9584a0e

Browse files
authored
Merge branch 'master' into antonpirker/openai-agents-guardrail-span
2 parents 6f33e86 + 9b58d31 commit 9584a0e

File tree

92 files changed

+548
-605
lines changed

Some content is hidden

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

92 files changed

+548
-605
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-graphql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
32+
python-version: ["3.6","3.8","3.9","3.10","3.11","3.12","3.13"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

.pre-commit-config.yaml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,9 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.3.0
4+
- repo: https://github.com/astral-sh/ruff-pre-commit
5+
rev: v0.13.2
66
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
10-
- repo: https://github.com/psf/black
11-
rev: 24.1.0
12-
hooks:
13-
- id: black
14-
exclude: ^(.*_pb2.py|.*_pb2_grpc.py)
15-
16-
- repo: https://github.com/pycqa/flake8
17-
rev: 5.0.4
18-
hooks:
19-
- id: flake8
20-
additional_dependencies:
21-
[
22-
flake8-pyproject,
23-
flake8-bugbear,
24-
pep8-naming,
25-
]
26-
27-
# Disabled for now, because it lists a lot of problems.
28-
#- repo: https://github.com/pre-commit/mirrors-mypy
29-
# rev: 'v0.931'
30-
# hooks:
31-
# - id: mypy
7+
- id: ruff-check
8+
args: [--fix]
9+
- id: ruff-format

0 commit comments

Comments
 (0)