From 8a9e72e8e00db523804fcba61c546a703f7cb6d1 Mon Sep 17 00:00:00 2001 From: tpv Date: Sat, 20 Jun 2026 16:17:26 -0700 Subject: [PATCH] added uv.lock --- .gitignore | 3 +-- monitor_utils/config.py | 9 +++------ uv.lock | 8 ++++++++ 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 uv.lock diff --git a/.gitignore b/.gitignore index d666960..80c254e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,4 @@ __pycache__ *.pyc .vscode .idea -*.md -.env.local \ No newline at end of file +*.md \ No newline at end of file diff --git a/monitor_utils/config.py b/monitor_utils/config.py index e119a58..13f4508 100644 --- a/monitor_utils/config.py +++ b/monitor_utils/config.py @@ -14,16 +14,13 @@ from monitor_utils.constants import ( def is_production(override_production=False) -> bool: if override_production: - return override_production + return False return DEVELOPMENT_MODE == DevelopmentMode.PRODUCTION -IS_PRODUCTION = is_production() - - -def get_bot_token() -> str: - if IS_PRODUCTION: +def get_bot_token(is_production: bool) -> str: + if is_production: return PRODUCTION_BOT_TOKEN return DEVELOPMENT_BOT_TOKEN diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..2ffb2ea --- /dev/null +++ b/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 3 +requires-python = ">=3.10" + +[[package]] +name = "monitor-utils" +version = "0.1.0" +source = { editable = "." }