Skip to content

Commit

Permalink
Delint.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkw31 committed Aug 6, 2024
1 parent 1f3e0fd commit 44277b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions softpack_core/schemas/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,15 @@ def read_metadata(cls, path: str, name: str) -> Box:
"""This method returns the metadata for an environment with the given
path and name.
"""

return artifacts.get(path, name).metadata()

@classmethod
def store_metadata(cls, environment_path: str, metadata: Box):
"""This method writes the given metadata to the repo for the environment
path given.
"""This method writes the given metadata to the repo for the
environment path given.
"""

tree_oid = artifacts.create_file(
environment_path,
artifacts.meta_file,
Expand All @@ -637,6 +639,7 @@ def set_hidden(
cls, name: str, path: str, hidden: bool
) -> HiddenResponse: # type: ignore
"""This method sets the hidden status for the given environment."""

environment_path = Path(path, name)
response: Optional[Error] = cls.check_env_exists(environment_path)
if response is not None:
Expand Down

0 comments on commit 44277b7

Please sign in to comment.