Skip to content

Commit 043120b

Browse files
authored
infra: configure pylint to recognize boto3 and botocore as third-party imports (aws#1296)
1 parent beb5a9a commit 043120b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ int-import-graph=
420420
known-standard-library=
421421

422422
# Force import order to recognize a module as part of a third party library.
423-
known-third-party=enchant
423+
known-third-party=boto3,botocore,enchant
424424

425425
# Analyse import fallback blocks. This can be used to support both Python 2 and
426426
# 3 compatible code, which means that the block might have code that exists

src/sagemaker/model_monitor/monitoring_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
import os
2121
import uuid
2222

23+
from botocore.exceptions import ClientError
24+
2325
from sagemaker.session import Session
2426
from sagemaker.s3 import S3Downloader
2527
from sagemaker.s3 import S3Uploader
26-
from botocore.exceptions import ClientError
2728

2829
NO_SUCH_KEY_CODE = "NoSuchKey"
2930

src/sagemaker/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
import time
2222
import warnings
2323

24-
import six
2524
import boto3
2625
import botocore.config
2726
from botocore.exceptions import ClientError
27+
import six
2828

2929
import sagemaker.logs
3030
from sagemaker import vpc_utils

0 commit comments

Comments
 (0)