From 4a0e17f050b66ab42be3eb10d00c1ba6342fa676 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 16:41:46 -0500 Subject: [PATCH] Bump black from 22.12.0 to 23.1.0 (#4126) * Bump black from 22.12.0 to 23.1.0 Bumps [black](https://github.com/psf/black) from 22.12.0 to 23.1.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/22.12.0...23.1.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Bump black in precommit * reformat with new black version --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Degatano --- .pre-commit-config.yaml | 2 +- requirements_tests.txt | 2 +- supervisor/auth.py | 1 - supervisor/dbus/network/__init__.py | 5 ++++- tests/api/test_ingress.py | 1 - tests/resolution/evaluation/test_evaluate_container.py | 1 - 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a1a6eab8..e6e7c46bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black args: diff --git a/requirements_tests.txt b/requirements_tests.txt index 3a6dcbbed..f0402ce84 100644 --- a/requirements_tests.txt +++ b/requirements_tests.txt @@ -1,4 +1,4 @@ -black==22.12.0 +black==23.1.0 codecov==2.1.12 coverage==7.1.0 flake8-docstrings==1.7.0 diff --git a/supervisor/auth.py b/supervisor/auth.py index f7b1952b9..f8f439349 100644 --- a/supervisor/auth.py +++ b/supervisor/auth.py @@ -99,7 +99,6 @@ class Auth(FileConfiguration, CoreSysAttributes): ATTR_ADDON: addon.slug, }, ) as req: - if req.status == 200: _LOGGER.info("Successful login for '%s'", username) self._update_cache(username, password) diff --git a/supervisor/dbus/network/__init__.py b/supervisor/dbus/network/__init__.py index cd6b652c4..f1d598602 100644 --- a/supervisor/dbus/network/__init__.py +++ b/supervisor/dbus/network/__init__.py @@ -100,7 +100,10 @@ class NetworkManager(DBusInterfaceProxy): self, settings: Any, device_object: str ) -> tuple[NetworkSetting, NetworkConnection]: """Activate a connction on a device.""" - (_, obj_active_con,) = await self.dbus.call_add_and_activate_connection( + ( + _, + obj_active_con, + ) = await self.dbus.call_add_and_activate_connection( settings, device_object, DBUS_OBJECT_BASE ) diff --git a/tests/api/test_ingress.py b/tests/api/test_ingress.py index c9e62642d..58b927f4f 100644 --- a/tests/api/test_ingress.py +++ b/tests/api/test_ingress.py @@ -20,7 +20,6 @@ async def test_validate_session(api_client, coresys): "aiohttp.web_request.BaseRequest.__getitem__", return_value=coresys.homeassistant, ): - resp = await api_client.post("/ingress/session") result = await resp.json() diff --git a/tests/resolution/evaluation/test_evaluate_container.py b/tests/resolution/evaluation/test_evaluate_container.py index 109f32f2e..2fcc236e6 100644 --- a/tests/resolution/evaluation/test_evaluate_container.py +++ b/tests/resolution/evaluation/test_evaluate_container.py @@ -17,7 +17,6 @@ def test_get_images(coresys: CoreSys): "supervisor.resolution.evaluations.container.EvaluateContainer._get_images", return_value=[MagicMock(tags=["test"])], ): - images = container._get_images() assert images[0].tags[0] == "test"