Skip to content

Commit 3d68f5c

Browse files
committed
chore(lint): Handle pylint errors
1 parent b101789 commit 3d68f5c

File tree

5 files changed

+565
-458
lines changed

5 files changed

+565
-458
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# lint Python modules using external checkers.
22
[MASTER]
33
ignore=SVN
4-
disable=R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011,F0401,E0611,E1004,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,C0301,C0411,R0204,W0622,E1121,inconsistent-return-statements,R0205,C0325
4+
disable=R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011,F0401,E0611,E1004,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,C0301,C0411,R0204,W0622,E1121,inconsistent-return-statements,R0205,C0325,unsubscriptable-object

examples/speaker_text_to_speech.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
# passed in the request. When the service responds with the synthesized
66
# audio, the pyaudio would play it in a blocking mode
77

8-
from ibm_watson import TextToSpeechV1
8+
from ibm_watson import SpeechToTextV1
99
from ibm_watson.websocket import SynthesizeCallback
1010
import pyaudio
11+
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
1112

1213
authenticator = IAMAuthenticator('your_api_key')
1314
service = SpeechToTextV1(authenticator=authenticator)

examples/visual_recognition_v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
# analyze
4343
dog_path = os.path.join(os.path.dirname(__file__), '../resources/dog.jpg')
44-
giraffe_path = os.path.join(os.path.dirname(__file__),'../resources/my-giraffe.jpeg')
44+
giraffe_path = os.path.join(os.path.dirname(__file__), '../resources/my-giraffe.jpeg')
4545
with open(dog_path, 'rb') as dog_file, open(giraffe_path, 'rb') as giraffe_files:
4646
analyze_images = service.analyze(
4747
collection_ids=[collection_id],

0 commit comments

Comments
 (0)