Skip to content

Commit fcffa19

Browse files
committed
linting fix
1 parent 6fe1ca7 commit fcffa19

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

contract-tests/images/applications/botocore/botocore_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,14 @@ def get_model_request_response(path):
429429

430430
if "amazon.nova" in path:
431431
model_id = "amazon.nova-pro-v1:0"
432-
432+
433433
request_body = {
434-
"messages":[{"role": "user", "content": [{"text": "A camping trip"}]}],
434+
"messages": [{"role": "user", "content": [{"text": "A camping trip"}]}],
435435
"inferenceConfig": {
436436
"max_new_tokens": 800,
437437
"temperature": 0.9,
438438
"top_p": 0.7,
439-
}
439+
},
440440
}
441441

442442
response_body = {

contract-tests/tests/test/amazon/botocore/botocore_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
import math
4-
from logging import INFO, Logger, getLogger
54
import re
5+
from logging import INFO, Logger, getLogger
66
from typing import Dict, List
77

88
from docker.types import EndpointConfig
@@ -1074,4 +1074,6 @@ def _assert_str_attribute(self, attributes_dict: Dict[str, AnyValue], key: str,
10741074
self.assertIsNotNone(actual_value)
10751075
pattern = re.compile(expected_value)
10761076
match = pattern.fullmatch(actual_value.string_value)
1077-
self.assertTrue(match is not None, f"Actual: {actual_value.string_value} does not match Expected: {expected_value}")
1077+
self.assertTrue(
1078+
match is not None, f"Actual: {actual_value.string_value} does not match Expected: {expected_value}"
1079+
)

sample-applications/simple-client-server/server_automatic_s3client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ def server_request():
1818

1919

2020
if __name__ == "__main__":
21-
app.run(port=8082)
21+
app.run(port=8082)

0 commit comments

Comments
 (0)