Skip to content

Commit 65dd77d

Browse files
build(deps): bump black from 22.12.0 to 23.3.0 (getsentry#1984)
* build(deps): bump black from 22.12.0 to 23.3.0 Bumps [black](https://github.com/psf/black) from 22.12.0 to 23.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@22.12.0...23.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-major ... --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivana Kellyerova <[email protected]>
1 parent 24e2940 commit 65dd77d

File tree

20 files changed

+4
-25
lines changed

20 files changed

+4
-25
lines changed

linter-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mypy==1.3.0
2-
black==22.12.0
2+
black==23.3.0
33
flake8==5.0.4
44
types-certifi
55
types-redis

sentry_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def _update_session_from_event(
444444

445445
if session.user_agent is None:
446446
headers = (event.get("request") or {}).get("headers")
447-
for (k, v) in iteritems(headers or {}):
447+
for k, v in iteritems(headers or {}):
448448
if k.lower() == "user-agent":
449449
user_agent = v
450450
break

sentry_sdk/integrations/atexit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from sentry_sdk._types import TYPE_CHECKING
1212

1313
if TYPE_CHECKING:
14-
1514
from typing import Any
1615
from typing import Optional
1716

sentry_sdk/integrations/django/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ def _got_request_exception(request=None, **kwargs):
475475
hub = Hub.current
476476
integration = hub.get_integration(DjangoIntegration)
477477
if integration is not None:
478-
479478
if request is not None and integration.transaction_style == "url":
480479
with hub.configure_scope() as scope:
481480
_attempt_resolve_again(request, scope, integration.transaction_style)
@@ -504,7 +503,7 @@ def cookies(self):
504503
]
505504

506505
clean_cookies = {} # type: Dict[str, Union[str, AnnotatedValue]]
507-
for (key, val) in self.request.COOKIES.items():
506+
for key, val in self.request.COOKIES.items():
508507
if key in privacy_cookies:
509508
clean_cookies[key] = SENSITIVE_DATA_SUBSTITUTE
510509
else:

sentry_sdk/integrations/django/asgi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def patch_channels_asgi_handler_impl(cls):
6161
from sentry_sdk.integrations.django import DjangoIntegration
6262

6363
if channels.__version__ < "3.0.0":
64-
6564
old_app = cls.__call__
6665

6766
async def sentry_patched_asgi_handler(self, receive, send):

sentry_sdk/integrations/django/middleware.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def sentry_wrapped_method(*args, **kwargs):
126126
class SentryWrappingMiddleware(
127127
_asgi_middleware_mixin_factory(_check_middleware_span) # type: ignore
128128
):
129-
130129
async_capable = getattr(middleware, "async_capable", False)
131130

132131
def __init__(self, get_response=None, *args, **kwargs):

sentry_sdk/integrations/django/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def sentry_patched_make_view_atomic(self, *args, **kwargs):
4949
integration = hub.get_integration(DjangoIntegration)
5050

5151
if integration is not None and integration.middleware_spans:
52-
5352
if (
5453
iscoroutinefunction is not None
5554
and wrap_async_view is not None

sentry_sdk/integrations/starlite.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def patch_app_init() -> None:
6969
old__init__ = Starlite.__init__
7070

7171
def injection_wrapper(self: "Starlite", *args: "Any", **kwargs: "Any") -> None:
72-
7372
after_exception = kwargs.pop("after_exception", [])
7473
kwargs.update(
7574
after_exception=[

sentry_sdk/integrations/trytond.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def __init__(self): # type: () -> None
2222

2323
@staticmethod
2424
def setup_once(): # type: () -> None
25-
2625
app.wsgi_app = sentry_sdk.integrations.wsgi.SentryWsgiMiddleware(app.wsgi_app)
2726

2827
def error_handler(e): # type: (Exception) -> None

sentry_sdk/sessions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def flush(self):
9393

9494
envelope.add_session(session)
9595

96-
for (attrs, states) in pending_aggregates.items():
96+
for attrs, states in pending_aggregates.items():
9797
if len(envelope.items) == MAX_ENVELOPE_ITEMS:
9898
self.capture_func(envelope)
9999
envelope = Envelope()

0 commit comments

Comments
 (0)