From 877e79bd29f66ee4dc4bce5a34308ff34f902e08 Mon Sep 17 00:00:00 2001 From: Benjamin Webb <40066515+webb-ben@users.noreply.github.com> Date: Tue, 21 Jan 2025 09:55:54 -0500 Subject: [PATCH] Remove unused diffs --- userCode/odwr/types.py | 3 --- userCode/util.py | 12 ------------ uv.lock | 8 ++++---- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/userCode/odwr/types.py b/userCode/odwr/types.py index 8027052..080cbcc 100644 --- a/userCode/odwr/types.py +++ b/userCode/odwr/types.py @@ -242,9 +242,6 @@ class Attributes(BaseModel): air_temp_min_available: int precipitation_available: int - class Config: - populate_by_name = True - class StationData(BaseModel, extra="forbid"): attributes: Attributes diff --git a/userCode/util.py b/userCode/util.py index cda3083..c6b414b 100644 --- a/userCode/util.py +++ b/userCode/util.py @@ -13,7 +13,6 @@ from dagster import RunFailureSensorContext, get_dagster_logger import hashlib import os -from uuid import UUID def get_env(key: str) -> str: @@ -70,17 +69,6 @@ def from_oregon_datetime(date_str: str, fmt: str = "%m/%d/%Y %I:%M:%S %p") -> da tzinfo=datetime.timezone.utc ) -def make_uuid(input: str) -> str: - """ - helper function to make uuid - - :param input: string of source - :param raw: bool of str casting - - :returns: str of resulting uuid - """ - _uuid = UUID(hex=hashlib.md5(input.encode('utf-8')).hexdigest()) - return str(_uuid) def url_join(*parts: str) -> str: """ diff --git a/uv.lock b/uv.lock index 9452554..b39c892 100644 --- a/uv.lock +++ b/uv.lock @@ -118,7 +118,7 @@ name = "click" version = "8.1.7" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "colorama", marker = "platform_system == 'Windows'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de", size = 336121 } wheels = [ @@ -177,11 +177,11 @@ dependencies = [ { name = "jinja2" }, { name = "packaging" }, { name = "protobuf" }, - { name = "psutil", marker = "sys_platform == 'win32'" }, + { name = "psutil", marker = "platform_system == 'Windows'" }, { name = "pydantic" }, { name = "python-dotenv" }, { name = "pytz" }, - { name = "pywin32", marker = "sys_platform == 'win32'" }, + { name = "pywin32", marker = "platform_system == 'Windows'" }, { name = "pyyaml" }, { name = "requests" }, { name = "rich" }, @@ -193,7 +193,7 @@ dependencies = [ { name = "toposort" }, { name = "tqdm" }, { name = "typing-extensions" }, - { name = "tzdata", marker = "sys_platform == 'win32'" }, + { name = "tzdata", marker = "platform_system == 'Windows'" }, { name = "universal-pathlib" }, { name = "watchdog" }, ]