Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MHHukiewitz committed Nov 23, 2023
1 parent a29de08 commit 6ccaa87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 2 additions & 6 deletions aleph_message/models/execution/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@

from pydantic import Field

from .environment import (
FunctionEnvironment,
HostRequirements,
MachineResources,
)
from .volume import MachineVolume
from ..abstract import BaseContent, HashableModel
from .environment import FunctionEnvironment, HostRequirements, MachineResources
from .volume import MachineVolume


class BaseExecutableContent(HashableModel, BaseContent, ABC):
Expand Down
8 changes: 3 additions & 5 deletions aleph_message/models/execution/instance.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
from __future__ import annotations

from typing import Any, Dict

from pydantic import Field

from aleph_message.models.abstract import HashableModel
from aleph_message.models.item_hash import ItemHash

from .abstract import BaseExecutableContent
from .volume import VolumePersistence, PersistentVolumeSizeMib, ParentVolume
from .volume import ParentVolume, PersistentVolumeSizeMib, VolumePersistence


class RootfsVolume(HashableModel):
Expand All @@ -17,6 +15,7 @@ class RootfsVolume(HashableModel):
The root file system of an instance is built as a copy of a reference image, named parent
image. The user determines a custom size and persistence model.
"""

parent: ParentVolume
persistence: VolumePersistence
# Use the same size constraint as persistent volumes for now
Expand All @@ -29,4 +28,3 @@ class InstanceContent(BaseExecutableContent):
rootfs: RootfsVolume = Field(
description="Root filesystem of the system, will be booted by the kernel"
)

0 comments on commit 6ccaa87

Please sign in to comment.