Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
MBueschelberger committed Dec 16, 2024
1 parent 78c534b commit e9f3f58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
32 changes: 8 additions & 24 deletions dsms/apps/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
_get_app_specification,
)

from dsms.knowledge.utils import print_model # isort:skip

from dsms.core.logging import handler # isort:skip

Expand Down Expand Up @@ -101,30 +102,13 @@ def __setattr__(self, name, value) -> None:
)
self.session.buffers.updated.update({self.name: self})

# def __str__(self) -> str:
# """Pretty print the app config fields"""
# fields = ", ".join(
# [
# "{key}={value}".format( # pylint: disable=consider-using-f-string
# key=key,
# value=(
# value
# if key != "specification"
# else {
# "metadata": value.get( # pylint: disable=no-member
# "metadata"
# )
# }
# ),
# )
# for key, value in self.__dict__.items()
# ]
# )
# return f"{self.__class__.__name__}({fields})"

# def __repr__(self) -> str:
# """Pretty print the kitem Fields"""
# return str(self)
def __str__(self) -> str:
"""Pretty print the kitem Fields"""
return print_model(self, "app")

def __repr__(self) -> str:
"""Pretty print the kitem Fields"""
return str(self)

@field_validator("name")
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ install_requires =
click>=8,<9
html5lib>=1,<2
lru-cache<1
oyaml==1.1
oyaml==1
pandas>=2,<3
pydantic>=2,<3
pydantic-settings
Expand Down

0 comments on commit e9f3f58

Please sign in to comment.