diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 357e2663fcc..269d786ab24 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.253 + rev: v0.0.254 hooks: - id: ruff args: diff --git a/homeassistant/components/esphome/bluetooth/client.py b/homeassistant/components/esphome/bluetooth/client.py index 6ec51cabeb2..343847f55fa 100644 --- a/homeassistant/components/esphome/bluetooth/client.py +++ b/homeassistant/components/esphome/bluetooth/client.py @@ -526,6 +526,7 @@ class ESPHomeClient(BaseBleakClient): The characteristic to read from, specified by either integer handle, UUID or directly by the BleakGATTCharacteristic object representing it. + **kwargs: Unused Returns: (bytearray) The read data. @@ -542,6 +543,7 @@ class ESPHomeClient(BaseBleakClient): Args: handle (int): The handle of the descriptor to read from. + **kwargs: Unused Returns: (bytearray) The read data. diff --git a/pyproject.toml b/pyproject.toml index 850995273bc..bc7a603e5e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -272,6 +272,8 @@ ignore = [ "D407", # Section name underlining "E501", # line too long "E731", # do not assign a lambda expression, use a def + # Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923 + "UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)` ] [tool.ruff.flake8-import-conventions.extend-aliases] diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index e2deb067d7d..65913a31596 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -14,5 +14,5 @@ pycodestyle==2.10.0 pydocstyle==6.2.3 pyflakes==3.0.1 pyupgrade==3.3.1 -ruff==0.0.253 +ruff==0.0.254 yamllint==1.28.0