diff --git a/performance_history_analysis.py b/performance_history_analysis.py index 606d1b5ae4..17479e5242 100644 --- a/performance_history_analysis.py +++ b/performance_history_analysis.py @@ -44,7 +44,7 @@ def _print_summary_performance_descending( ) -> None: commits_with_diffs: List[Tuple[Commit, Decimal]] = [] last_result: Optional[Decimal] = None - for (commit, result) in reversed(commits_with_results): + for commit, result in reversed(commits_with_results): if last_result: result_diff = Decimal(result) - last_result if result_diff > 0: @@ -54,7 +54,7 @@ def _print_summary_performance_descending( commits_with_diffs, key=lambda e: e[1], reverse=True ) print("\nCommits causing performance descending:") - for (commit, diff) in sorted_list_of_diffs: + for commit, diff in sorted_list_of_diffs: print( f"Diff [{diff}] after commit {commit} ({commit.authored_datetime}) -> {commit.message.splitlines()[0]}" ) diff --git a/src/snowflake/cli/api/commands/project_initialisation.py b/src/snowflake/cli/api/commands/project_initialisation.py index b851fe31b2..7a661ee1bc 100644 --- a/src/snowflake/cli/api/commands/project_initialisation.py +++ b/src/snowflake/cli/api/commands/project_initialisation.py @@ -22,9 +22,11 @@ def add_init_command( def init( project_name: str = Argument( f"example_{project_type.lower()}", - help=help_message - if help_message is not None - else f"Name of the {project_type} project you want to create.", + help=( + help_message + if help_message is not None + else f"Name of the {project_type} project you want to create." + ), ), **options, ) -> CommandResult: diff --git a/src/snowflake/cli/plugins/object/stage/diff.py b/src/snowflake/cli/plugins/object/stage/diff.py index c9e7afd354..300ac7d14a 100644 --- a/src/snowflake/cli/plugins/object/stage/diff.py +++ b/src/snowflake/cli/plugins/object/stage/diff.py @@ -47,7 +47,9 @@ def __str__(self) -> str: """ Method override for the standard behavior of string representation for this class. """ - components: List[str] = ( + components: List[ + str + ] = ( [] ) # py3.8 does not support subscriptions for builtin list, hence using List diff --git a/src/snowflake/cli/plugins/sql/commands.py b/src/snowflake/cli/plugins/sql/commands.py index 92f47ce296..059d52dc58 100644 --- a/src/snowflake/cli/plugins/sql/commands.py +++ b/src/snowflake/cli/plugins/sql/commands.py @@ -34,7 +34,7 @@ def execute_sql( "-i", help="Read the query from standard input. Use it when piping input to this command.", ), - **options + **options, ) -> CommandResult: """ Executes Snowflake query. diff --git a/tests/test_logs.py b/tests/test_logs.py index c5f471ae4c..51867d7db0 100644 --- a/tests/test_logs.py +++ b/tests/test_logs.py @@ -37,9 +37,11 @@ def _setup_config_and_logs( "", "[cli.logs]", f'path = "{logs_path}"' if use_custom_logs_path else None, - f"save_logs = {str(save_logs).lower()}" - if save_logs is not None - else None, + ( + f"save_logs = {str(save_logs).lower()}" + if save_logs is not None + else None + ), f'level = "{level}"' if level else None, ] if x is not None diff --git a/tests/test_main.py b/tests/test_main.py index 3508f428d2..dc5fcc8926 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,4 +1,5 @@ """These tests verify that the CLI runs work as expected.""" + from __future__ import annotations import json diff --git a/tests_integration/testing_utils/snowpark_utils.py b/tests_integration/testing_utils/snowpark_utils.py index 4ea04965f1..e635227232 100644 --- a/tests_integration/testing_utils/snowpark_utils.py +++ b/tests_integration/testing_utils/snowpark_utils.py @@ -115,9 +115,11 @@ def snowpark_execute_should_return_expected_value( assert_that_result_contains_row_with( result, { - identifier.upper() - if object_type == TestType.FUNCTION.value - else entity_name.upper(): expected_value + ( + identifier.upper() + if object_type == TestType.FUNCTION.value + else entity_name.upper() + ): expected_value }, )