From 081873ff5f06d9bd2bfb403c98b35ecda2d961fc Mon Sep 17 00:00:00 2001 From: autinerd <27780930+autinerd@users.noreply.github.com> Date: Sat, 4 May 2024 06:58:55 +0200 Subject: [PATCH] Bump ruff to 0.4.3 --- .pre-commit-config.yaml | 2 +- homeassistant/components/auth/__init__.py | 5 ++--- pyproject.toml | 2 +- requirements_test_pre_commit.txt | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 40757c09e95..07d6c785168 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.2 + rev: v0.4.3 hooks: - id: ruff args: diff --git a/homeassistant/components/auth/__init__.py b/homeassistant/components/auth/__init__.py index 3d825cd99b5..f48f5c25bbb 100644 --- a/homeassistant/components/auth/__init__.py +++ b/homeassistant/components/auth/__init__.py @@ -651,10 +651,9 @@ def websocket_delete_all_refresh_tokens( continue try: hass.auth.async_remove_refresh_token(token) - except Exception as err: # pylint: disable=broad-except + except Exception: # pylint: disable=broad-except getLogger(__name__).exception( - "During refresh token removal, the following error occurred: %s", - err, + "During refresh token removal, the following error occurred" ) remove_failed = True diff --git a/pyproject.toml b/pyproject.toml index d3f2af6bbf9..3bcc2ad5c38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -659,7 +659,7 @@ filterwarnings = [ ] [tool.ruff] -required-version = ">=0.4.2" +required-version = ">=0.4.3" [tool.ruff.lint] select = [ diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index 05e98a945d2..de3776d7416 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -1,5 +1,5 @@ # Automatically generated from .pre-commit-config.yaml by gen_requirements_all.py, do not edit codespell==2.2.6 -ruff==0.4.2 +ruff==0.4.3 yamllint==1.35.1