mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🎨 Lint fixes
This commit is contained in:
@@ -23,7 +23,7 @@ repos:
|
|||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: 'v0.9.10'
|
rev: 'v0.11.0'
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args:
|
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:
|
def datetime_to_ms_epoch(dt: datetime) -> int:
|
||||||
"""Returns millis since epoch."""
|
"""Returns millis since epoch."""
|
||||||
microseconds = time.mktime(dt.timetuple()) * 1000000 + dt.microsecond
|
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]:
|
def load_older_updates(env: Env) -> dict[str, Any]:
|
||||||
|
|||||||
Reference in New Issue
Block a user