Skip to content

Commit c39ab4e

Browse files
committed
address pylint
1 parent 3ec88bc commit c39ab4e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/sagemaker/cli/compatibility/v2/sagemaker_upgrade_v2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
def _update_file(input_file, output_file):
25-
"""Update a file to be compatible with v2 of the SageMaker Python SDK,
25+
"""Updates a file to be compatible with v2 of the SageMaker Python SDK,
2626
and write the updated source to the output file.
2727
2828
Args:
@@ -51,7 +51,7 @@ def _update_file(input_file, output_file):
5151

5252

5353
def _parse_args():
54-
"""Parses CLI arguments"""
54+
"""Parses CLI arguments."""
5555
parser = argparse.ArgumentParser(
5656
description="A tool to convert files to be compatible with v2 of the SageMaker Python SDK. "
5757
"Simple usage: sagemaker-upgrade-v2 --in-file foo.py --out-file bar.py"
@@ -72,5 +72,6 @@ def _parse_args():
7272

7373

7474
def main():
75+
"""Parses the CLI arguments and executes the file update."""
7576
args = _parse_args()
7677
_update_file(args.in_file, args.out_file)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ skip_install = true
8282
deps =
8383
pylint==2.3.1
8484
commands =
85-
python -m pylint --rcfile=.pylintrc -j 0 src/sagemaker tools
85+
python -m pylint --rcfile=.pylintrc -j 0 src/sagemaker
8686

8787
[testenv:twine]
8888
basepython = python3

0 commit comments

Comments
 (0)