@@ -166,7 +166,7 @@ def athena_dataset_definition(sagemaker_session):
166166 catalog = "AwsDataCatalog" ,
167167 database = "default" ,
168168 work_group = "workgroup" ,
169- query_string = 'SELECT * FROM "default"."s3_test_table_$STAGE_$REGIONUNDERSCORED";' ,
169+ query_string = ( 'SELECT * FROM "default"."s3_test_table_$STAGE_$REGIONUNDERSCORED";' ) ,
170170 output_s3_uri = f"s3://{ sagemaker_session .default_bucket ()} /add" ,
171171 output_format = "JSON" ,
172172 output_compression = "GZIP" ,
@@ -1107,7 +1107,7 @@ def test_one_step_lambda_pipeline(sagemaker_session, role, pipeline_name, region
11071107 step_lambda = LambdaStep (
11081108 name = "lambda-step" ,
11091109 lambda_func = Lambda (
1110- function_arn = "arn:aws:lambda:us-west-2:123456789012:function:sagemaker_test_lambda" ,
1110+ function_arn = ( "arn:aws:lambda:us-west-2:123456789012:function:sagemaker_test_lambda" ) ,
11111111 session = sagemaker_session ,
11121112 ),
11131113 inputs = {"arg1" : "foo" },
@@ -1152,7 +1152,7 @@ def test_two_step_lambda_pipeline_with_output_reference(
11521152 step_lambda1 = LambdaStep (
11531153 name = "lambda-step1" ,
11541154 lambda_func = Lambda (
1155- function_arn = "arn:aws:lambda:us-west-2:123456789012:function:sagemaker_test_lambda" ,
1155+ function_arn = ( "arn:aws:lambda:us-west-2:123456789012:function:sagemaker_test_lambda" ) ,
11561156 session = sagemaker_session ,
11571157 ),
11581158 inputs = {"arg1" : "foo" },
@@ -1162,7 +1162,7 @@ def test_two_step_lambda_pipeline_with_output_reference(
11621162 step_lambda2 = LambdaStep (
11631163 name = "lambda-step2" ,
11641164 lambda_func = Lambda (
1165- function_arn = "arn:aws:lambda:us-west-2:123456789012:function:sagemaker_test_lambda" ,
1165+ function_arn = ( "arn:aws:lambda:us-west-2:123456789012:function:sagemaker_test_lambda" ) ,
11661166 session = sagemaker_session ,
11671167 ),
11681168 inputs = {"arg1" : outputParam1 },
@@ -1854,7 +1854,9 @@ def test_sklearn_xgboost_sip_model_registration(
18541854
18551855@pytest .mark .skipif (
18561856 tests .integ .test_region () not in tests .integ .DRIFT_CHECK_BASELINES_SUPPORTED_REGIONS ,
1857- reason = f"DriftCheckBaselines changes are not fully deployed in { tests .integ .test_region ()} ." ,
1857+ reason = (
1858+ "DriftCheckBaselines changes are not fully deployed in" f" { tests .integ .test_region ()} ."
1859+ ),
18581860)
18591861def test_model_registration_with_drift_check_baselines (
18601862 sagemaker_session ,
@@ -2009,7 +2011,9 @@ def test_model_registration_with_drift_check_baselines(
20092011 assert len (execution_steps ) == 1
20102012 failure_reason = execution_steps [0 ].get ("FailureReason" , "" )
20112013 if failure_reason != "" :
2012- logging .error (f"Pipeline execution failed with error: { failure_reason } . Retrying.." )
2014+ logging .error (
2015+ f"Pipeline execution failed with error: { failure_reason } ." " Retrying.."
2016+ )
20132017 continue
20142018 assert execution_steps [0 ]["StepStatus" ] == "Succeeded"
20152019 assert execution_steps [0 ]["StepName" ] == "MyRegisterModelStep"
@@ -2166,7 +2170,7 @@ def test_training_job_with_debugger_and_profiler(
21662170 Rule .sagemaker (rule_configs .loss_not_decreasing ()),
21672171 ]
21682172 debugger_hook_config = DebuggerHookConfig (
2169- s3_output_path = f"s3://{ sagemaker_session .default_bucket ()} /{ uuid .uuid4 ()} /tensors"
2173+ s3_output_path = ( f"s3://{ sagemaker_session .default_bucket ()} /{ uuid .uuid4 ()} /tensors" )
21702174 )
21712175
21722176 base_dir = os .path .join (DATA_DIR , "pytorch_mnist" )
0 commit comments