Skip to content

Commit 17f290b

Browse files
Ivy BazanRuban Hussain
authored andcommitted
fix linting errors
1 parent 99660ca commit 17f290b

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/sagemaker/config/config.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def load_sagemaker_config(
6060
defined by the SDK.
6161
6262
Users can override the default admin and user config file paths using the
63-
``SAGEMAKER_ADMIN_CONFIG_OVERRIDE`` and ``SAGEMAKER_USER_CONFIG_OVERRIDE`` environment variables,
64-
respectively.
63+
``SAGEMAKER_ADMIN_CONFIG_OVERRIDE`` and ``SAGEMAKER_USER_CONFIG_OVERRIDE`` environment
64+
variables, respectively.
6565
6666
Additional config file paths can also be provided as a parameter.
6767
@@ -71,13 +71,16 @@ def load_sagemaker_config(
7171
* Merges the files in the same order.
7272
7373
This method throws exceptions in the following cases:
74-
* ``jsonschema.exceptions.ValidationError``: Schema validation fails for one or more config files.
75-
* ``RuntimeError``: The method is unable to retrieve the list of all S3 files with the same prefix or is unable to retrieve the file.
74+
* ``jsonschema.exceptions.ValidationError``: Schema validation fails for one or more
75+
config files.
76+
* ``RuntimeError``: The method is unable to retrieve the list of all S3 files with the
77+
same prefix or is unable to retrieve the file.
7678
* ``ValueError``: There are no S3 files with the prefix when an S3 URI is provided.
77-
* ``ValueError``: There is no config.yaml file in the S3 bucket when an S3 URI is provided.
78-
* ``ValueError``: A file doesn't exist in a path that was specified by the user as part of an
79-
environment variable or additional configuration file path. This doesn't include the default
80-
config file locations.
79+
* ``ValueError``: There is no config.yaml file in the S3 bucket when an S3 URI is
80+
provided.
81+
* ``ValueError``: A file doesn't exist in a path that was specified by the user as
82+
part of an environment variable or additional configuration file path. This doesn't
83+
include the default config file locations.
8184
8285
Args:
8386
additional_config_paths: List of config file paths.
@@ -128,7 +131,8 @@ def load_sagemaker_config(
128131

129132

130133
def validate_sagemaker_config(sagemaker_config: dict = None):
131-
"""Validates whether a given dictionary adheres to the schema defined at ``sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA``
134+
"""Validates whether a given dictionary adheres to the schema defined at
135+
``sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA``
132136
133137
Args:
134138
sagemaker_config: A dictionary containing default values for the

0 commit comments

Comments
 (0)