Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sagemaker-core/src/sagemaker/core/config_schema.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""JSON schema definition for the SageMaker Python SDK configuration file."""

SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA = {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
Expand Down
1 change: 0 additions & 1 deletion sagemaker-core/src/sagemaker/core/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
from sagemaker.core.serializers.base import BaseSerializer
from sagemaker.core.deserializers.base import BaseDeserializer


logger = get_textual_rich_logger(__name__)


Expand Down
3 changes: 1 addition & 2 deletions sagemaker-core/src/sagemaker/core/tools/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
# language governing permissions and limitations under the License.
"""

LOGGER_STRING = """
logger = get_textual_rich_logger(__name__)
LOGGER_STRING = """logger = get_textual_rich_logger(__name__)

"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2115,6 +2115,7 @@ def generate_config_schema(self) -> str:
with open(output, "w") as file:
# Generate and write the license to the file
file.write(
'"""JSON schema definition for the SageMaker Python SDK configuration file."""\n\n'
f"SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA = {json.dumps(combined_config_schema, indent=4)}"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def __init__(self, combined_shapes: Optional[dict] = None):

self.shape_dag = self.get_shapes_dag()
with open(SHAPE_DAG_FILE_PATH, "w") as f:
f.write('"""Generated shape dependency graph used for serialization."""\n\n')
f.write("SHAPE_DAG=")
f.write(textwrap.indent(pprint.pformat(self.shape_dag, width=1), "") + "\n")
reformat_file_with_black(SHAPE_DAG_FILE_PATH)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Generated shape dependency graph used for serialization."""

SHAPE_DAG = {
"AIAdapterModelPackageEntry": {
"members": [
Expand Down
Loading