Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRosenstein committed Feb 27, 2024
1 parent 5bbdeff commit 85c6d54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion kraken-build/src/kraken/std/cargo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def cargo_update(*, project: Project | None = None) -> CargoUpdateTask:
task.depends_on(":cargoBuildSupport")
return task


def cargo_build(
mode: Literal["debug", "release"],
incremental: bool | None = None,
Expand Down Expand Up @@ -411,7 +412,7 @@ def cargo_publish(
:param retry_attempts: Retry the publish task if it fails, up to a maximum number of attempts. Sometimes
cargo publishes can be flakey depending on the destination. Defaults to 0 retries.
"""

project = project or Project.current()
cargo = CargoProject.get_or_create(project)

Expand Down
7 changes: 2 additions & 5 deletions kraken-build/src/kraken/std/cargo/tasks/cargo_publish_task.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import contextlib
import logging
from pathlib import Path

from typing import Any

from kraken.common import not_none
from kraken.core import Property, Project, TaskStatus
from kraken.common import atomic_file_swap, not_none
from kraken.core import Project, Property, TaskStatus
from kraken.std.cargo import CargoProject

from kraken.common import atomic_file_swap

from ..config import CargoRegistry
from .cargo_build_task import CargoBuildTask

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from __future__ import annotations

import dataclasses
import json
import logging
import os
import random
Expand All @@ -44,8 +43,8 @@
cargo_registry,
cargo_sync_config,
)
from tests.resources import example_dir
from tests.kraken_std.util.docker import DockerServiceManager
from tests.resources import example_dir

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 85c6d54

Please sign in to comment.