Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# * Run "pre-commit install".
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -16,14 +16,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.9.3
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies: ["pytest"]
4 changes: 1 addition & 3 deletions src/asphalt/exceptions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import Any

from asphalt.core import Context, merge_config, qualified_name

from asphalt.exceptions.api import ExceptionReporter, ExtrasProvider

__all__ = ("report_exception",)
Expand Down Expand Up @@ -37,8 +36,7 @@ def report_exception(
exception = sys.exc_info()[1]
if not exception:
raise ValueError(
'missing "exception" parameter and no current exception present in '
"sys.exc_info()"
'missing "exception" parameter and no current exception present in sys.exc_info()'
)

actual_logger: logging.Logger | None
Expand Down
1 change: 0 additions & 1 deletion src/asphalt/exceptions/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
merge_config,
qualified_name,
)

from asphalt.exceptions import report_exception
from asphalt.exceptions.api import ExceptionReporter

Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/exceptions/reporters/raygun.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from typing import Any

from asphalt.core import Context
from raygun4py.raygunprovider import RaygunSender

from asphalt.core import Context
from asphalt.exceptions.api import ExceptionReporter


Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/exceptions/reporters/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from typing import Any, Sequence

import sentry_sdk
from asphalt.core import Context, resolve_reference
from sentry_sdk.integrations import Integration

from asphalt.core import Context, resolve_reference
from asphalt.exceptions.api import ExceptionReporter

if sys.version_info >= (3, 10):
Expand Down
2 changes: 1 addition & 1 deletion tests/reporters/test_raygun.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from unittest.mock import patch

import pytest
from asphalt.core import Context

from asphalt.core import Context
from asphalt.exceptions.reporters.raygun import RaygunExceptionReporter


Expand Down
2 changes: 1 addition & 1 deletion tests/reporters/test_sentry.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from unittest.mock import MagicMock

import pytest
from asphalt.core import Context
from pytest_mock import MockerFixture
from sentry_sdk import Transport
from sentry_sdk.integrations import Integration

from asphalt.core import Context
from asphalt.exceptions.reporters.sentry import SentryExceptionReporter


Expand Down
2 changes: 1 addition & 1 deletion tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from collections import OrderedDict

import pytest
from asphalt.core.context import Context

from asphalt.core.context import Context
from asphalt.exceptions.api import ExceptionReporter
from asphalt.exceptions.component import ExceptionReporterComponent

Expand Down
2 changes: 1 addition & 1 deletion tests/test_report_exception.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging

import pytest
from asphalt.core import Context

from asphalt.core import Context
from asphalt.exceptions import ExtrasProvider, report_exception
from asphalt.exceptions.api import ExceptionReporter

Expand Down
Loading