From dc128720c723c9b0114e4cd9eeb9e96fa4283120 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 14 Jul 2025 02:48:21 +0100 Subject: [PATCH] hatch fmt --- obsws_cli/__about__.py | 2 +- obsws_cli/__init__.py | 2 +- obsws_cli/settings.py | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/obsws_cli/__about__.py b/obsws_cli/__about__.py index 6bc3a16..ca3c7da 100644 --- a/obsws_cli/__about__.py +++ b/obsws_cli/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present onyx-and-iris # # SPDX-License-Identifier: MIT -__version__ = "0.20.0" +__version__ = '0.20.0' diff --git a/obsws_cli/__init__.py b/obsws_cli/__init__.py index c412b50..367b928 100644 --- a/obsws_cli/__init__.py +++ b/obsws_cli/__init__.py @@ -4,4 +4,4 @@ from .app import app -__all__ = ["app"] +__all__ = ['app'] diff --git a/obsws_cli/settings.py b/obsws_cli/settings.py index 0092685..e2085bc 100644 --- a/obsws_cli/settings.py +++ b/obsws_cli/settings.py @@ -16,6 +16,7 @@ class Settings(UserDict): The settings are expected to be in uppercase and should start with 'OBS_'. Example: + ------- settings = Settings() host = settings['OBS_HOST'] settings['OBS_PORT'] = 4455 @@ -64,12 +65,15 @@ def get(key: str) -> SettingsValue: """Get a setting value by key. Args: + ---- key (str): The key of the setting to retrieve. Returns: + ------- The value of the setting. Raises: + ------ KeyError: If the key does not exist in the settings. """