Skip to content

Commit 55822f7

Browse files
dependabot[bot]beniericknikure
authored
chore(deps): bump black from 22.3.0 to 24.3.0 in /requirements/extras (#4519)
* chore(deps): bump black from 22.3.0 to 24.3.0 in /requirements/extras Bumps [black](https://github.com/psf/black) from 22.3.0 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@22.3.0...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * black-format * fix flake8 * black-format * fix black-check * fixed black-check --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Erick Benitez-Ramos <[email protected]> Co-authored-by: Kalyani Nikure <[email protected]> Co-authored-by: knikure <[email protected]>
1 parent 7b211fe commit 55822f7

File tree

95 files changed

+615
-538
lines changed

Some content is hidden

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

95 files changed

+615
-538
lines changed

requirements/extras/test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ coverage>=5.2, <6.2
99
mock==4.0.3
1010
contextlib2==21.6.0
1111
awslogs==0.14.0
12-
black==22.3.0
12+
black==24.3.0
1313
stopit==1.1.2
1414
# Update tox.ini to have correct version of airflow constraints file
1515
apache-airflow==2.8.4

src/sagemaker/amazon/record_pb2.py

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sagemaker/automl/automl.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,9 @@ def _load_config(cls, inputs, auto_ml, expand_role=True, validate_uri=True):
930930

931931
auto_ml_model_deploy_config = {}
932932
if auto_ml.auto_generate_endpoint_name is not None:
933-
auto_ml_model_deploy_config[
934-
"AutoGenerateEndpointName"
935-
] = auto_ml.auto_generate_endpoint_name
933+
auto_ml_model_deploy_config["AutoGenerateEndpointName"] = (
934+
auto_ml.auto_generate_endpoint_name
935+
)
936936
if not auto_ml.auto_generate_endpoint_name and auto_ml.endpoint_name is not None:
937937
auto_ml_model_deploy_config["EndpointName"] = auto_ml.endpoint_name
938938

@@ -1034,9 +1034,9 @@ def _prepare_auto_ml_stop_condition(
10341034
if max_candidates is not None:
10351035
stopping_condition["MaxCandidates"] = max_candidates
10361036
if max_runtime_per_training_job_in_seconds is not None:
1037-
stopping_condition[
1038-
"MaxRuntimePerTrainingJobInSeconds"
1039-
] = max_runtime_per_training_job_in_seconds
1037+
stopping_condition["MaxRuntimePerTrainingJobInSeconds"] = (
1038+
max_runtime_per_training_job_in_seconds
1039+
)
10401040
if total_job_runtime_in_seconds is not None:
10411041
stopping_condition["MaxAutoMLJobRuntimeInSeconds"] = total_job_runtime_in_seconds
10421042

src/sagemaker/automl/automlv2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,9 +1446,9 @@ def _load_config(cls, inputs, auto_ml, expand_role=True):
14461446

14471447
auto_ml_model_deploy_config = {}
14481448
if auto_ml.auto_generate_endpoint_name is not None:
1449-
auto_ml_model_deploy_config[
1450-
"AutoGenerateEndpointName"
1451-
] = auto_ml.auto_generate_endpoint_name
1449+
auto_ml_model_deploy_config["AutoGenerateEndpointName"] = (
1450+
auto_ml.auto_generate_endpoint_name
1451+
)
14521452
if not auto_ml.auto_generate_endpoint_name and auto_ml.endpoint_name is not None:
14531453
auto_ml_model_deploy_config["EndpointName"] = auto_ml.endpoint_name
14541454

src/sagemaker/collection.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,11 @@ def _convert_group_resource_response(
377377
{
378378
"Name": collection_name,
379379
"Arn": collection_arn,
380-
"Type": resource_group["Identifier"]["ResourceType"]
381-
if is_model_group
382-
else "Collection",
380+
"Type": (
381+
resource_group["Identifier"]["ResourceType"]
382+
if is_model_group
383+
else "Collection"
384+
),
383385
}
384386
)
385387
return collection_details

src/sagemaker/debugger/profiler_config.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,19 @@ def _to_request_dict(self):
162162
profiler_config_request["DisableProfiler"] = self.disable_profiler
163163

164164
if self.system_monitor_interval_millis is not None:
165-
profiler_config_request[
166-
"ProfilingIntervalInMilliseconds"
167-
] = self.system_monitor_interval_millis
165+
profiler_config_request["ProfilingIntervalInMilliseconds"] = (
166+
self.system_monitor_interval_millis
167+
)
168168

169169
if self.framework_profile_params is not None:
170-
profiler_config_request[
171-
"ProfilingParameters"
172-
] = self.framework_profile_params.profiling_parameters
170+
profiler_config_request["ProfilingParameters"] = (
171+
self.framework_profile_params.profiling_parameters
172+
)
173173

174174
if self.profile_params is not None:
175-
profiler_config_request[
176-
"ProfilingParameters"
177-
] = self.profile_params.profiling_parameters
175+
profiler_config_request["ProfilingParameters"] = (
176+
self.profile_params.profiling_parameters
177+
)
178178

179179
return profiler_config_request
180180

src/sagemaker/djl_inference/model.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ def _create_estimator(
213213
vpc_config: Optional[
214214
Dict[
215215
str,
216-
List[
217-
str,
218-
],
216+
List[str],
219217
]
220218
] = None,
221219
volume_kms_key=None,
@@ -820,9 +818,9 @@ def _get_container_env(self):
820818
logger.warning("Ignoring invalid container log level: %s", self.container_log_level)
821819
return self.env
822820

823-
self.env[
824-
"SERVING_OPTS"
825-
] = f'"-Dai.djl.logging.level={_LOG_LEVEL_MAP[self.container_log_level]}"'
821+
self.env["SERVING_OPTS"] = (
822+
f'"-Dai.djl.logging.level={_LOG_LEVEL_MAP[self.container_log_level]}"'
823+
)
826824
return self.env
827825

828826

src/sagemaker/estimator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,9 +2539,9 @@ def _get_train_args(cls, estimator, inputs, experiment_config):
25392539
# which is parsed in execution time
25402540
# This does not check config because the EstimatorBase constuctor already did that check
25412541
if estimator.encrypt_inter_container_traffic:
2542-
train_args[
2543-
"encrypt_inter_container_traffic"
2544-
] = estimator.encrypt_inter_container_traffic
2542+
train_args["encrypt_inter_container_traffic"] = (
2543+
estimator.encrypt_inter_container_traffic
2544+
)
25452545

25462546
if isinstance(estimator, sagemaker.algorithm.AlgorithmEstimator):
25472547
train_args["algorithm_arn"] = estimator.algorithm_arn
@@ -2556,9 +2556,9 @@ def _get_train_args(cls, estimator, inputs, experiment_config):
25562556
train_args["debugger_hook_config"] = estimator.debugger_hook_config._to_request_dict()
25572557

25582558
if estimator.tensorboard_output_config:
2559-
train_args[
2560-
"tensorboard_output_config"
2561-
] = estimator.tensorboard_output_config._to_request_dict()
2559+
train_args["tensorboard_output_config"] = (
2560+
estimator.tensorboard_output_config._to_request_dict()
2561+
)
25622562

25632563
cls._add_spot_checkpoint_args(local_mode, estimator, train_args)
25642564

src/sagemaker/experiments/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ def __init__(
220220
trial_component_name=self._trial_component.trial_component_name,
221221
sagemaker_session=sagemaker_session,
222222
artifact_bucket=artifact_bucket,
223-
artifact_prefix=_DEFAULT_ARTIFACT_PREFIX
224-
if artifact_prefix is None
225-
else artifact_prefix,
223+
artifact_prefix=(
224+
_DEFAULT_ARTIFACT_PREFIX if artifact_prefix is None else artifact_prefix
225+
),
226226
)
227227
self._lineage_artifact_tracker = _LineageArtifactTracker(
228228
trial_component_arn=self._trial_component.trial_component_arn,

src/sagemaker/explainer/explainer_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def _to_request_dict(self):
3737
request_dict = {}
3838

3939
if self.clarify_explainer_config:
40-
request_dict[
41-
"ClarifyExplainerConfig"
42-
] = self.clarify_explainer_config._to_request_dict()
40+
request_dict["ClarifyExplainerConfig"] = (
41+
self.clarify_explainer_config._to_request_dict()
42+
)
4343

4444
return request_dict

0 commit comments

Comments
 (0)