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"