mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
🎨 Lint fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
+1
-1
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user