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]: