Skip to content

Commit ab56aa3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 10d7dbe commit ab56aa3

File tree

8 files changed

+7
-10
lines changed

8 files changed

+7
-10
lines changed

src/asphalt/exceptions/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from typing import Any
77

88
from asphalt.core import Context, merge_config, qualified_name
9-
109
from asphalt.exceptions.api import ExceptionReporter, ExtrasProvider
1110

1211
__all__ = ("report_exception",)
@@ -37,8 +36,7 @@ def report_exception(
3736
exception = sys.exc_info()[1]
3837
if not exception:
3938
raise ValueError(
40-
'missing "exception" parameter and no current exception present in '
41-
"sys.exc_info()"
39+
'missing "exception" parameter and no current exception present in sys.exc_info()'
4240
)
4341

4442
actual_logger: logging.Logger | None

src/asphalt/exceptions/component.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
merge_config,
1414
qualified_name,
1515
)
16-
1716
from asphalt.exceptions import report_exception
1817
from asphalt.exceptions.api import ExceptionReporter
1918

src/asphalt/exceptions/reporters/raygun.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from typing import Any
44

5-
from asphalt.core import Context
65
from raygun4py.raygunprovider import RaygunSender
76

7+
from asphalt.core import Context
88
from asphalt.exceptions.api import ExceptionReporter
99

1010

src/asphalt/exceptions/reporters/sentry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
from typing import Any, Sequence
77

88
import sentry_sdk
9-
from asphalt.core import Context, resolve_reference
109
from sentry_sdk.integrations import Integration
1110

11+
from asphalt.core import Context, resolve_reference
1212
from asphalt.exceptions.api import ExceptionReporter
1313

1414
if sys.version_info >= (3, 10):

tests/reporters/test_raygun.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from unittest.mock import patch
33

44
import pytest
5-
from asphalt.core import Context
65

6+
from asphalt.core import Context
77
from asphalt.exceptions.reporters.raygun import RaygunExceptionReporter
88

99

tests/reporters/test_sentry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from unittest.mock import MagicMock
22

33
import pytest
4-
from asphalt.core import Context
54
from pytest_mock import MockerFixture
65
from sentry_sdk import Transport
76
from sentry_sdk.integrations import Integration
87

8+
from asphalt.core import Context
99
from asphalt.exceptions.reporters.sentry import SentryExceptionReporter
1010

1111

tests/test_component.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from collections import OrderedDict
55

66
import pytest
7-
from asphalt.core.context import Context
87

8+
from asphalt.core.context import Context
99
from asphalt.exceptions.api import ExceptionReporter
1010
from asphalt.exceptions.component import ExceptionReporterComponent
1111

tests/test_report_exception.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import logging
22

33
import pytest
4-
from asphalt.core import Context
54

5+
from asphalt.core import Context
66
from asphalt.exceptions import ExtrasProvider, report_exception
77
from asphalt.exceptions.api import ExceptionReporter
88

0 commit comments

Comments
 (0)