From af61d0f7afdf25c8cd5817a182b95d296cd26185 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Wed, 19 Mar 2025 23:20:28 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Lint=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 2 +- src/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e2dc605..99686fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.9.10' + rev: 'v0.11.0' hooks: - id: ruff args: diff --git a/src/utils.py b/src/utils.py index d86101c..477337a 100644 --- a/src/utils.py +++ b/src/utils.py @@ -241,7 +241,7 @@ def contains_any_word(string: str, words: list[str]) -> bool: def datetime_to_ms_epoch(dt: datetime) -> int: """Returns millis since epoch.""" microseconds = time.mktime(dt.timetuple()) * 1000000 + dt.microsecond - return int(round(microseconds / float(1000))) + return round(microseconds / float(1000)) def load_older_updates(env: Env) -> dict[str, Any]: