1- # Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+ # Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22# SPDX-License-Identifier: MIT
33#
44#
@@ -44,7 +44,7 @@ def format_prompt(*, field_name: str, description: str | None) -> str:
4444 """Get the formatted prompt string from its field name and description."""
4545 prompt = f"\n { field_name } :"
4646 if description is not None :
47- prompt += f "\n " + textwrap .indent (description , " " * 4 )
47+ prompt += "\n " + textwrap .indent (description , " " * 4 )
4848 prompt += "\n "
4949 return prompt
5050
@@ -64,9 +64,7 @@ def get_subcommands_from_plugins(
6464 for launch_mode , launcher_kls in launch_mode_configs .items ():
6565 launcher_config_kls = launcher_kls .CONFIG_MODEL
6666
67- _config_writer_callback = config_writer_callback_factory (
68- launcher_config_kls , product_name , launch_mode
69- )
67+ _config_writer_callback = config_writer_callback_factory (launcher_config_kls , product_name , launch_mode )
7068 launch_mode_command = click .Command (launch_mode , callback = _config_writer_callback )
7169 for field in dataclasses .fields (launcher_config_kls ):
7270 option = get_option_from_field (field )
@@ -253,9 +251,7 @@ def show_config() -> None:
253251
254252 if not is_configured (product_name = product_name , launch_mode = launch_mode ):
255253 try :
256- config = get_config_for (
257- product_name = product_name , launch_mode = launch_mode
258- )
254+ config = get_config_for (product_name = product_name , launch_mode = launch_mode )
259255 click .echo (" No configuration is set (uses defaults)." )
260256 except (KeyError , RuntimeError ):
261257 click .echo (" No configuration is set (no defaults available)." )
0 commit comments