From 6ea29bd45d5a3fbf7cb37dd97219b9ada56a3fae Mon Sep 17 00:00:00 2001 From: mulhern Date: Wed, 4 Nov 2026 11:33:51 -0500 Subject: [PATCH] Use ruff 0.17.2 to re-format Signed-off-by: mulhern --- src/stratis_cli/_actions/_list_filesystem.py | 8 +-- src/stratis_cli/_actions/_logical.py | 55 +++----------------- src/stratis_cli/_actions/_pool.py | 9 +--- tests/integration/physical/test_debug.py | 6 +-- 4 files changed, 10 insertions(+), 68 deletions(-) diff --git a/src/stratis_cli/_actions/_list_filesystem.py b/src/stratis_cli/_actions/_list_filesystem.py index 08416866a..dd44b0c33 100644 --- a/src/stratis_cli/_actions/_list_filesystem.py +++ b/src/stratis_cli/_actions/_list_filesystem.py @@ -41,13 +41,7 @@ def list_filesystems(uuid_formatter: Callable, *, pool_name=None, fs_id=None): """ assert fs_id is None or pool_name is not None - from ._data import ( # noqa: PLC0415 - MOFilesystem, - MOPool, - ObjectManager, - filesystems, - pools, - ) + from ._data import MOFilesystem, MOPool, ObjectManager, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) diff --git a/src/stratis_cli/_actions/_logical.py b/src/stratis_cli/_actions/_logical.py index 763e88b40..8f467328e 100644 --- a/src/stratis_cli/_actions/_logical.py +++ b/src/stratis_cli/_actions/_logical.py @@ -49,13 +49,7 @@ def create_volumes(namespace: Namespace): :raises StratisCliPartialChangeError: """ - from ._data import ( # noqa: PLC0415 - MOFilesystem, - ObjectManager, - Pool, - filesystems, - pools, - ) + from ._data import MOFilesystem, ObjectManager, Pool, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) @@ -149,13 +143,7 @@ def destroy_volumes(namespace: Namespace): :raises StratisCliPartialChangeError: """ - from ._data import ( # noqa: PLC0415 - MOFilesystem, - ObjectManager, - Pool, - filesystems, - pools, - ) + from ._data import MOFilesystem, ObjectManager, Pool, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) @@ -249,12 +237,7 @@ def rename_fs(namespace: Namespace): :raises StratisCliEngineError: :raises StratisCliNoChangeError: """ - from ._data import ( # noqa: PLC0415 - Filesystem, - ObjectManager, - filesystems, - pools, - ) + from ._data import Filesystem, ObjectManager, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) @@ -284,13 +267,7 @@ def set_size_limit(namespace: Namespace): """ Set an upper limit on the size of the filesystem. """ - from ._data import ( # noqa: PLC0415 - Filesystem, - MOFilesystem, - ObjectManager, - filesystems, - pools, - ) + from ._data import Filesystem, MOFilesystem, ObjectManager, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) @@ -327,13 +304,7 @@ def unset_size_limit(namespace: Namespace): """ Unset upper limit on the size of the filesystem. """ - from ._data import ( # noqa: PLC0415 - Filesystem, - MOFilesystem, - ObjectManager, - filesystems, - pools, - ) + from ._data import Filesystem, MOFilesystem, ObjectManager, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) @@ -360,13 +331,7 @@ def schedule_revert(namespace: Namespace): """ Schedule reverting a snapshot into its origin. """ - from ._data import ( # noqa: PLC0415 - Filesystem, - MOFilesystem, - ObjectManager, - filesystems, - pools, - ) + from ._data import Filesystem, MOFilesystem, ObjectManager, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) @@ -397,13 +362,7 @@ def cancel_revert(namespace: Namespace): """ Cancel reverting a snapshot into its origin. """ - from ._data import ( # noqa: PLC0415 - Filesystem, - MOFilesystem, - ObjectManager, - filesystems, - pools, - ) + from ._data import Filesystem, MOFilesystem, ObjectManager, filesystems, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) diff --git a/src/stratis_cli/_actions/_pool.py b/src/stratis_cli/_actions/_pool.py index e8eedbc62..806255f25 100644 --- a/src/stratis_cli/_actions/_pool.py +++ b/src/stratis_cli/_actions/_pool.py @@ -368,14 +368,7 @@ def init_cache(namespace: Namespace): :raises StratisCliEngineError: :raises StratisCliIncoherenceError: """ - from ._data import ( # noqa: PLC0415 - MODev, - MOPool, - ObjectManager, - Pool, - devs, - pools, - ) + from ._data import MODev, MOPool, ObjectManager, Pool, devs, pools # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {}) diff --git a/tests/integration/physical/test_debug.py b/tests/integration/physical/test_debug.py index f12c8dc0f..d3cfe265f 100644 --- a/tests/integration/physical/test_debug.py +++ b/tests/integration/physical/test_debug.py @@ -54,11 +54,7 @@ def test_lookup_uuid(self): from stratis_cli._actions._connection import get_object # noqa: PLC0415 from stratis_cli._actions._constants import TOP_OBJECT # noqa: PLC0415 - from stratis_cli._actions._data import ( # noqa: PLC0415 - MODev, - ObjectManager, - devs, - ) + from stratis_cli._actions._data import MODev, ObjectManager, devs # noqa: PLC0415 proxy = get_object(TOP_OBJECT) managed_objects = ObjectManager.Methods.GetManagedObjects(proxy, {})