Skip to content

Commit

Permalink
reorder system settings attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
montezdesousa committed Aug 1, 2023
1 parent 21c69a5 commit c8f82e1
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions openbb_sdk/sdk/core/openbb_core/app/model/system_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@


class SystemSettings(Tagged):
run_in_isolation: bool = Field(
default=False,
description="Whether or not to run each command in total isolation.",
allow_mutation=False,
)
dbms_uri: Optional[str] = Field(
default=None,
description="Connection URI like : `mongodb://root:example@localhost:27017/`",
allow_mutation=False,
)

# System section
os: str = FrozenField(default=str(pl.system()))
python_version: str = FrozenField(default=str(pl.python_version()))
Expand Down Expand Up @@ -60,6 +49,14 @@ class SystemSettings(Tagged):
test_mode: bool = False
debug_mode: bool = False
headless: bool = False
run_in_isolation: bool = FrozenField(
default=False,
description="Whether or not to run each command in total isolation.",
)
dbms_uri: Optional[str] = FrozenField(
default=None,
description="Connection URI like : `mongodb://root:example@localhost:27017/`",
)

class Config:
validate_assignment = True
Expand Down

0 comments on commit c8f82e1

Please sign in to comment.