Skip to content

Commit da33a64

Browse files
committed
fix: More fixes for ruff
Signed-off-by: Brandon Groth <[email protected]>
1 parent d71e536 commit da33a64

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fms_mo/utils/qconfig_utils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ def serialize_config(config):
448448

449449
len_before = len(config)
450450
dump = {k: config.pop(k) for k in items_to_delete}
451-
assert (
452-
len(config) + len(dump) == len_before
453-
), "Inconsistency in config. Please check."
451+
assert len(config) + len(dump) == len_before, (
452+
"Inconsistency in config. Please check."
453+
)
454454

455455
return config, dump
456456

@@ -482,9 +482,9 @@ def remove_unwanted_from_config(config, minimal: bool = True):
482482

483483
len_before = len(config)
484484
dump = {k: config.pop(k) for k in unwanted_items if k in config}
485-
assert (
486-
len(config) + len(dump) == len_before
487-
), "Inconsistency in config. Please check."
485+
assert len(config) + len(dump) == len_before, (
486+
"Inconsistency in config. Please check."
487+
)
488488
return config, dump
489489

490490

@@ -528,7 +528,7 @@ def add_wanted_defaults_to_config(config, minimal: bool = True):
528528
if a wanted item is not in the config, add it w/ default value
529529
"""
530530
if not minimal:
531-
config.update( config_defaults() )
531+
config.update(config_defaults())
532532

533533

534534
def qconfig_save(

0 commit comments

Comments
 (0)