hatch fmt

This commit is contained in:
onyx-and-iris 2025-07-14 02:48:21 +01:00
parent 2e3f4267cd
commit dc128720c7
3 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online> # SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
# #
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
__version__ = "0.20.0" __version__ = '0.20.0'

View File

@ -4,4 +4,4 @@
from .app import app from .app import app
__all__ = ["app"] __all__ = ['app']

View File

@ -16,6 +16,7 @@ class Settings(UserDict):
The settings are expected to be in uppercase and should start with 'OBS_'. The settings are expected to be in uppercase and should start with 'OBS_'.
Example: Example:
-------
settings = Settings() settings = Settings()
host = settings['OBS_HOST'] host = settings['OBS_HOST']
settings['OBS_PORT'] = 4455 settings['OBS_PORT'] = 4455
@ -64,12 +65,15 @@ def get(key: str) -> SettingsValue:
"""Get a setting value by key. """Get a setting value by key.
Args: Args:
----
key (str): The key of the setting to retrieve. key (str): The key of the setting to retrieve.
Returns: Returns:
-------
The value of the setting. The value of the setting.
Raises: Raises:
------
KeyError: If the key does not exist in the settings. KeyError: If the key does not exist in the settings.
""" """