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 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()