From 69572f2c734fb62b63e06cc3315ba91a02e941bc Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Thu, 19 Dec 2024 16:51:41 -0500 Subject: [PATCH] style: autoformat --- craft_application/commands/remote.py | 2 +- tests/unit/commands/test_remote.py | 5 +++-- tests/unit/launchpad/models/test_recipe.py | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/craft_application/commands/remote.py b/craft_application/commands/remote.py index 07c52b63..d583e217 100644 --- a/craft_application/commands/remote.py +++ b/craft_application/commands/remote.py @@ -81,7 +81,7 @@ def _fill_parser(self, parser: argparse.ArgumentParser) -> None: def _run( self, parsed_args: argparse.Namespace, - **_kwargs: Any, # noqa: ANN401 (use of Any) + **_kwargs: Any, ) -> int | None: """Run the remote-build command. diff --git a/tests/unit/commands/test_remote.py b/tests/unit/commands/test_remote.py index bb5d5b38..840cb431 100644 --- a/tests/unit/commands/test_remote.py +++ b/tests/unit/commands/test_remote.py @@ -17,9 +17,10 @@ import argparse import pytest +from craft_cli import emit + from craft_application.commands import RemoteBuild from craft_application.launchpad.models import BuildState -from craft_cli import emit @pytest.fixture @@ -35,7 +36,7 @@ def test_remote_build_no_accept_upload(remote_build, mocker): parsed_args = argparse.Namespace(launchpad_accept_public_upload=False) mocker.patch.object(emit, "confirm", return_value=False) - assert remote_build.run(parsed_args) == 77 # noqa: PLR2004 (magic value) + assert remote_build.run(parsed_args) == 77 def test_remote_build_run(remote_build, mocker, fake_services, tmp_path, emitter): diff --git a/tests/unit/launchpad/models/test_recipe.py b/tests/unit/launchpad/models/test_recipe.py index 8c392f7d..755c26f2 100644 --- a/tests/unit/launchpad/models/test_recipe.py +++ b/tests/unit/launchpad/models/test_recipe.py @@ -17,6 +17,7 @@ from unittest import mock import pytest + from craft_application.launchpad import CharmRecipe, RecipeType, RockRecipe, SnapRecipe from craft_application.launchpad.models import get_recipe_class from craft_application.launchpad.models.recipe import BaseRecipe