Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply formatting changes from black 23.7.0 #1007

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/stratis_cli/_actions/_list_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _pools_with_changed_devs(devs_to_search):
from ._data import MODev

(increased, decreased) = (set(), set())
for (_, info) in devs_to_search:
for _, info in devs_to_search:
modev = MODev(info)
size = Range(modev.TotalPhysicalSize())
observed_size = get_property(modev.NewPhysicalSize(), Range, size)
Expand Down
4 changes: 0 additions & 4 deletions src/stratis_cli/_actions/_top.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,21 @@ def get_report(namespace):

# pylint: disable=import-outside-toplevel
if namespace.report_name == str(ReportKey.MANAGED_OBJECTS):

from ._data import ObjectManager

json_report = ObjectManager.Methods.GetManagedObjects(
get_object(TOP_OBJECT), {}
)

else:

if namespace.report_name == str(ReportKey.ENGINE_STATE):

from ._data import Manager

(report, return_code, message) = Manager.Methods.EngineStateReport(
get_object(TOP_OBJECT), {}
)

else:

from ._data import Report

(report, return_code, message) = Report.Methods.GetReport(
Expand Down
1 change: 0 additions & 1 deletion src/stratis_cli/_error_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ def _interpret_errors_2(errors):
if len(errors) > 1:
next_error = errors[1]
if isinstance(next_error, dbus.exceptions.DBusException):

# We do not test this error, as the only known way to cause it is
# manipulation of selinux configuration, which is too laborious to
# bother with at this time.
Expand Down
2 changes: 1 addition & 1 deletion src/stratis_cli/_parser/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _add_mut_ex_args(parser, args):
arguments to be added
:type args: list of bool * (list of dict)
"""
for (one_is_required, arg_list) in args:
for one_is_required, arg_list in args:
group = parser.add_mutually_exclusive_group(required=one_is_required)
for name, arg in arg_list:
group.add_argument(name, **arg)
Expand Down