Skip to content

Commit 5b5959b

Browse files
chore(deps-dev): bump black from 25.9.0 to 26.1.0 in /requirements (#8581)
* chore(deps-dev): bump black from 25.9.0 to 26.1.0 in /requirements Bumps [black](https://github.com/psf/black) from 25.9.0 to 26.1.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@25.9.0...26.1.0) --- updated-dependencies: - dependency-name: black dependency-version: 26.1.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * update black --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roger Zhang <ruojiazh@amazon.com>
1 parent 6e3b935 commit 5b5959b

76 files changed

Lines changed: 146 additions & 258 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ black:
5252
black setup.py samcli tests schema
5353

5454
black-check:
55-
black --check setup.py samcli tests schema
55+
@if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)" 2>/dev/null; then \
56+
black --check setup.py samcli tests schema; \
57+
else \
58+
echo "Skipping black check on Python < 3.10"; \
59+
fi
5660

5761
format: black
5862
ruff check samcli --fix

requirements/dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ filelock==3.24.3; python_version>="3.10"
4646
filelock==3.19.1; python_version<"3.10"
4747

4848
# formatter
49-
black==25.9.0; python_version>="3.9"
50-
black==24.8.0; python_version<"3.9"
49+
black==26.1.0; python_version>"3.9"
50+
black==25.9.0; python_version<="3.9"
5151
psutil==7.2.1
5252

5353
# Pin chardet to avoid requests compatibility assertion failure (requests requires chardet < 6)

samcli/cli/global_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _get_value(
258258
)
259259
return default
260260

261-
return value # type:ignore
261+
return value # type: ignore
262262

263263
def set_value(self, config_entry: ConfigEntry, value: Any, is_flag: bool = False, flush: bool = True) -> None:
264264
"""Set the value of a configuration. The associated env var will be updated as well.

samcli/cli/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def convert(self, value, param, ctx):
521521
)
522522

523523
for function_name, param_value in signing_profiles:
524-
(signer_profile_name, signer_profile_owner) = self._split_signer_profile_name_owner(
524+
signer_profile_name, signer_profile_owner = self._split_signer_profile_name_owner(
525525
_unquote_wrapped_quotes(param_value)
526526
)
527527

samcli/commands/build/core/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def format_examples(ctx: Context, formatter: BuildCommandHelpTextFormatter):
5151
],
5252
)
5353

54-
def format_options(self, ctx: Context, formatter: BuildCommandHelpTextFormatter) -> None: # type:ignore
54+
def format_options(self, ctx: Context, formatter: BuildCommandHelpTextFormatter) -> None: # type: ignore
5555
# NOTE(sriram-mv): `ignore` is put in place here for mypy even though it is the correct behavior,
5656
# as the `formatter_class` can be set in subclass of Command. If ignore is not set,
5757
# mypy raises argument needs to be HelpFormatter as super class defines it.

samcli/commands/deploy/core/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def format_acronyms(formatter: DeployCommandHelpTextFormatter):
9191
col_max=COL_SIZE_MODIFIER,
9292
)
9393

94-
def format_options(self, ctx: Context, formatter: DeployCommandHelpTextFormatter) -> None: # type:ignore
94+
def format_options(self, ctx: Context, formatter: DeployCommandHelpTextFormatter) -> None: # type: ignore
9595
# `ignore` is put in place here for mypy even though it is the correct behavior,
9696
# as the `formatter_class` can be set in subclass of Command. If ignore is not set,
9797
# mypy raises argument needs to be HelpFormatter as super class defines it.

samcli/commands/deploy/guided_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def prompt_code_signing_settings(self, stacks: List[Stack]):
236236
stacks : List[Stack]
237237
List of stacks to search functions and layers
238238
"""
239-
(functions_with_code_sign, layers_with_code_sign) = signer_config_per_function(stacks)
239+
functions_with_code_sign, layers_with_code_sign = signer_config_per_function(stacks)
240240

241241
# if no function or layer definition found with code signing, skip it
242242
if not functions_with_code_sign and not layers_with_code_sign:
@@ -260,7 +260,7 @@ def prompt_code_signing_settings(self, stacks: List[Stack]):
260260
click.echo("\t#Please provide signing profile details for the following functions & layers")
261261

262262
for function_name in functions_with_code_sign:
263-
(profile_name, profile_owner) = extract_profile_name_and_owner_from_existing(
263+
profile_name, profile_owner = extract_profile_name_and_owner_from_existing(
264264
function_name, self.signing_profiles
265265
)
266266

@@ -271,7 +271,7 @@ def prompt_code_signing_settings(self, stacks: List[Stack]):
271271
self.signing_profiles[function_name]["profile_owner"] = "" if not profile_owner else profile_owner
272272

273273
for layer_name, functions_use_this_layer in layers_with_code_sign.items():
274-
(profile_name, profile_owner) = extract_profile_name_and_owner_from_existing(
274+
profile_name, profile_owner = extract_profile_name_and_owner_from_existing(
275275
layer_name, self.signing_profiles
276276
)
277277
click.echo(

samcli/commands/docs/core/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def format_sub_commands(self, formatter: DocsCommandHelpTextFormatter):
7474
col_max=50,
7575
)
7676

77-
def format_options(self, ctx: Context, formatter: DocsCommandHelpTextFormatter): # type:ignore
77+
def format_options(self, ctx: Context, formatter: DocsCommandHelpTextFormatter): # type: ignore
7878
"""
7979
Overrides the format_options method from the parent class to update
8080
the help text formatting in a consistent method for the AWS SAM CLI

samcli/commands/init/core/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def format_examples(ctx: Context, formatter: InitCommandHelpTextFormatter):
8383
],
8484
)
8585

86-
def format_options(self, ctx: Context, formatter: InitCommandHelpTextFormatter) -> None: # type:ignore
86+
def format_options(self, ctx: Context, formatter: InitCommandHelpTextFormatter) -> None: # type: ignore
8787
# `ignore` is put in place here for mypy even though it is the correct behavior,
8888
# as the `formatter_class` can be set in subclass of Command. If ignore is not set,
8989
# mypy raises argument needs to be HelpFormatter as super class defines it.

samcli/commands/init/interactive_init_flow.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ def _generate_from_location(
193193
-----------------------
194194
Location: {location}
195195
Output Directory: {output_dir}
196-
""".format(
197-
location=location, output_dir=output_dir
198-
)
196+
""".format(location=location, output_dir=output_dir)
199197
click.echo(summary_msg)
200198
do_generate(
201199
location,

0 commit comments

Comments
 (0)