From 788020d8e1f2a2bac0d279b7aeaf8cb6c74d11bf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 20:47:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.4) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3768e55..b2a730f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From a9ef46f9c751f89277d5e5ff63eca8c768b611c3 Mon Sep 17 00:00:00 2001 From: tronikos Date: Thu, 19 Mar 2026 21:24:38 -0700 Subject: [PATCH 2/2] pre-commit fix --- src/androidtvremote2/androidtv_remote.py | 4 ++-- src/demo.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/androidtvremote2/androidtv_remote.py b/src/androidtvremote2/androidtv_remote.py index ff0e4be..d7b53ff 100644 --- a/src/androidtvremote2/androidtv_remote.py +++ b/src/androidtvremote2/androidtv_remote.py @@ -3,12 +3,12 @@ from __future__ import annotations import asyncio -import os import ssl from typing import TYPE_CHECKING from urllib.parse import urlparse import aiofiles +from aiofiles import os as aos from cryptography import x509 from .certificate_generator import generate_selfsigned_cert @@ -189,7 +189,7 @@ async def async_generate_cert_if_missing(self) -> bool: :returns: True if a new certificate was generated. """ - if os.path.isfile(self._certfile) and os.path.isfile(self._keyfile): + if await aos.path.isfile(self._certfile) and await aos.path.isfile(self._keyfile): return False cert_pem, key_pem = generate_selfsigned_cert(self._client_name) async with aiofiles.open(self._certfile, "w", encoding="utf-8") as out: diff --git a/src/demo.py b/src/demo.py index 34604c6..2d0d129 100644 --- a/src/demo.py +++ b/src/demo.py @@ -1,4 +1,4 @@ -# ruff: noqa: T201, PLR0912, PLR0915 +# ruff: noqa: T201, PLR0912, PLR0915, ASYNC240, ASYNC250 """Demo usage of AndroidTVRemote.""" import argparse