Skip to content

Commit

Permalink
style: autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Dec 19, 2024
1 parent 44d820d commit 69572f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion craft_application/commands/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/commands/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down
1 change: 1 addition & 0 deletions tests/unit/launchpad/models/test_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69572f2

Please sign in to comment.