Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Cilfone <nicholas.cilfone@fmr.com>
  • Loading branch information
ncilfone committed May 6, 2021
1 parent 12149c7 commit 8fe6c9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions spock/addons/s3/utils.py
Expand Up @@ -64,7 +64,7 @@ def handle_s3_save_path(temp_path: str, s3_path: str, name: str, s3_config: S3Co
name: spock generated filename
s3_config: s3_config object
Returns:
*Returns*:
"""
if s3_config is None:
Expand Down Expand Up @@ -143,14 +143,15 @@ def upload_s3(bucket: str, obj: str, temp_path: str, s3_session: BaseClient,
upload_config: S3UploadConfig):
"""Attempts to upload the local file to the S3 uri using any extra arguments to the upload
Args:
*Args*:
bucket: s3 bucket
obj: s3 object
temp_path: temporary path of the config file
s3_session: current s3 session
upload_config: S3UploadConfig with extra options for the file transfer
Returns:
*Returns*:
"""
try:
Expand Down
5 changes: 3 additions & 2 deletions spock/handlers.py
Expand Up @@ -136,13 +136,14 @@ def _handle_possible_s3_save_path(path: str, name: str, create_path: bool,
Checks to see if it detects a S3 uri and if so generates a tmp location to write the file to pre-upload
Args:
*Args*:
path: save path
name: spock generated file name
create_path: create the path for non s3 data
s3_config: s3 config object
Returns:
*Returns*:
"""
is_s3 = check_path_s3(path=path)
Expand Down

0 comments on commit 8fe6c9f

Please sign in to comment.