From 99d3277396457b4891130a775927568da111600b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:43:32 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/attachment.py | 1 + examples/simple.py | 1 + src/asphalt/mailer/mailers/smtp.py | 1 + tests/mailers/test_mock.py | 1 + tests/mailers/test_sendmail.py | 1 + tests/mailers/test_smtp.py | 1 + tests/test_api.py | 1 + tests/test_component.py | 3 ++- 8 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/attachment.py b/examples/attachment.py index 7178a76..db1b439 100644 --- a/examples/attachment.py +++ b/examples/attachment.py @@ -9,6 +9,7 @@ from pathlib import Path import click + from asphalt.core import CLIApplicationComponent, Context, run_application diff --git a/examples/simple.py b/examples/simple.py index 98b54f7..d22b59c 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -8,6 +8,7 @@ import logging import click + from asphalt.core import CLIApplicationComponent, Context, run_application diff --git a/src/asphalt/mailer/mailers/smtp.py b/src/asphalt/mailer/mailers/smtp.py index fc22edf..05ff4dc 100644 --- a/src/asphalt/mailer/mailers/smtp.py +++ b/src/asphalt/mailer/mailers/smtp.py @@ -7,6 +7,7 @@ from typing import Any from aiosmtplib import SMTP, SMTPTimeoutError + from asphalt.core import current_context, require_resource from ..api import DeliveryError, Mailer diff --git a/tests/mailers/test_mock.py b/tests/mailers/test_mock.py index 2ad4e3b..1a7146d 100644 --- a/tests/mailers/test_mock.py +++ b/tests/mailers/test_mock.py @@ -1,6 +1,7 @@ from __future__ import annotations import pytest + from asphalt.mailer.mailers.mock import MockMailer pytestmark = pytest.mark.anyio diff --git a/tests/mailers/test_sendmail.py b/tests/mailers/test_sendmail.py index fe1cd37..2d98b84 100644 --- a/tests/mailers/test_sendmail.py +++ b/tests/mailers/test_sendmail.py @@ -6,6 +6,7 @@ from pathlib import Path import pytest + from asphalt.mailer.api import DeliveryError, Mailer from asphalt.mailer.mailers.sendmail import SendmailMailer diff --git a/tests/mailers/test_smtp.py b/tests/mailers/test_smtp.py index 0bc8dd0..f1d4861 100644 --- a/tests/mailers/test_smtp.py +++ b/tests/mailers/test_smtp.py @@ -11,6 +11,7 @@ import pytest from aiosmtpd.handlers import Message as AIOSMTPMessage from aiosmtpd.smtp import SMTP, AuthResult, Envelope, Session + from asphalt.core.context import Context from asphalt.mailer.api import DeliveryError from asphalt.mailer.mailers.smtp import SMTPMailer diff --git a/tests/test_api.py b/tests/test_api.py index e4626a2..a6670b7 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -6,6 +6,7 @@ from typing import Any, cast import pytest + from asphalt.mailer.api import Mailer pytestmark = pytest.mark.anyio diff --git a/tests/test_component.py b/tests/test_component.py index 88eb532..5227e34 100644 --- a/tests/test_component.py +++ b/tests/test_component.py @@ -3,11 +3,12 @@ import logging import pytest +from pytest import LogCaptureFixture + from asphalt.core import qualified_name from asphalt.core.context import Context from asphalt.mailer.api import Mailer from asphalt.mailer.component import MailerComponent -from pytest import LogCaptureFixture pytestmark = pytest.mark.anyio