From 39a3b307a798f365146862274ad7db93aee3dcf4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:17:05 +0000 Subject: [PATCH 1/2] chore(deps): update dependency black to v24 --- requirements-check.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-check.txt b/requirements-check.txt index 36d44a2c..da416e9d 100644 --- a/requirements-check.txt +++ b/requirements-check.txt @@ -1,5 +1,5 @@ ruff==0.2.0 -black==23.12.1 +black==24.1.1 isort==5.13.2 mypy==1.8.0 types-tzlocal From 780c56ccda2811b01b43a9f64b8a915cba5ddae7 Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Mon, 5 Feb 2024 23:31:05 +0100 Subject: [PATCH 2/2] chore: reformat for black 24 --- src/autosuspend/checks/linux.py | 1 - tests/test_checks_xorg.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/autosuspend/checks/linux.py b/src/autosuspend/checks/linux.py index 9b99913c..6feb0bff 100644 --- a/src/autosuspend/checks/linux.py +++ b/src/autosuspend/checks/linux.py @@ -1,6 +1,5 @@ """Contains checks directly using the Linux operating system concepts.""" - from collections.abc import Iterable import configparser from contextlib import suppress diff --git a/tests/test_checks_xorg.py b/tests/test_checks_xorg.py index 6b7ef7a5..f923cb81 100644 --- a/tests/test_checks_xorg.py +++ b/tests/test_checks_xorg.py @@ -229,9 +229,9 @@ def test_create_unknown_method(self) -> None: def test_list_sessions_logind_dbus_error(self, mocker: MockerFixture) -> None: check = XIdleTime.create("name", config_section()) - mocker.patch.object( - check, "_provide_sessions" - ).side_effect = LogindDBusException() + mocker.patch.object(check, "_provide_sessions").side_effect = ( + LogindDBusException() + ) with pytest.raises(TemporaryCheckError): check._safe_provide_sessions()