watson-developer-cloud / python-sdk

:snake: Client library to use the IBM Watson services in Python and available in pip as watson-developer-cloud
https://pypi.org/project/ibm-watson/
Apache License 2.0
1.46k stars 827 forks source link

Fix the issues when running pylint on the test folder #298

Closed germanattanasio closed 6 years ago

germanattanasio commented 6 years ago

Run:

pylint test

Output:

************* Module test.test_conversation_v1
W: 20, 0: Wildcard import watson_developer_cloud.conversation_v1 (wildcard-import)
W: 54, 4: Unused variable 'counterexample_model' (unused-variable)
C:116,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:143, 4: Unused variable 'counterexample_model' (unused-variable)
W:179, 4: Unused variable 'counterexamples_model' (unused-variable)
W:207, 4: Unused variable 'counterexample_model' (unused-variable)
W:246, 4: Unused variable 'entity_model' (unused-variable)
C:264,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:293, 4: Unused variable 'entity_model' (unused-variable)
W:336, 4: Unused variable 'entities_model' (unused-variable)
W:368, 4: Unused variable 'entity_model' (unused-variable)
W:402, 4: Unused variable 'example_model' (unused-variable)
C:425,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:454, 4: Unused variable 'example_model' (unused-variable)
W:493, 4: Unused variable 'examples_model' (unused-variable)
W:523, 4: Unused variable 'example_model' (unused-variable)
W:557, 4: Unused variable 'intent_model' (unused-variable)
C:578,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:606, 4: Unused variable 'intent_model' (unused-variable)
W:639, 4: Unused variable 'intents_model' (unused-variable)
W:669, 4: Unused variable 'intent_model' (unused-variable)
W:854, 4: Unused variable 'synonym_model' (unused-variable)
C:874,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:901, 4: Unused variable 'synonym_model' (unused-variable)
W:946, 4: Unused variable 'synonyms_model' (unused-variable)
W:973, 4: Unused variable 'synonym_model' (unused-variable)
W:1008, 4: Unused variable 'value_model' (unused-variable)
C:1029,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:1060, 4: Unused variable 'value_model' (unused-variable)
W:1104, 4: Unused variable 'values_model' (unused-variable)
W:1140, 4: Unused variable 'value_model' (unused-variable)
W:1175, 4: Unused variable 'workspace_model' (unused-variable)
C:1193,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:1224, 4: Unused variable 'workspace_model' (unused-variable)
W:1261, 4: Unused variable 'workspaces_model' (unused-variable)
W:1295, 4: Unused variable 'workspace_model' (unused-variable)
************* Module test.test_discovery_v1
C:338, 0: Wrong hanging indentation (remove 13 spaces).
                     "document_id": "45556e23-f2b1-449d-8f27-489b514000ff",
        |            ^ (bad-continuation)
C:339, 0: Wrong hanging indentation (remove 13 spaces).
                     "configuration_id": "2e079259-7dd2-40a9-998f-3e716f5a7b88",
        |            ^ (bad-continuation)
C:340, 0: Wrong hanging indentation (remove 13 spaces).
                     "created" : "2016-06-16T10:56:54.957Z",
        |            ^ (bad-continuation)
C:341, 0: Wrong hanging indentation (remove 13 spaces).
                     "updated" : "2017-05-16T13:56:54.957Z",
        |            ^ (bad-continuation)
C:342, 0: Wrong hanging indentation (remove 13 spaces).
                     "status": "available",
        |            ^ (bad-continuation)
C:343, 0: Wrong hanging indentation (remove 13 spaces).
                     "status_description": "Document is successfully ingested and indexed with no warnings",
        |            ^ (bad-continuation)
C:344, 0: Wrong hanging indentation (remove 13 spaces).
                     "notices": []
        |            ^ (bad-continuation)
C:345, 0: Wrong hanging indentation.
                 }
    |   |        ^ (bad-continuation)
C:372, 0: Wrong continued indentation (add 7 spaces).
                           collection_id='collid',
                           ^      | (bad-continuation)
C:373, 0: Wrong continued indentation (add 7 spaces).
                           document_id='docid')
                           ^      | (bad-continuation)
C:431, 0: Wrong continued indentation (add 4 spaces).
                                            collection_id=collection_id)
                                            ^   | (bad-continuation)
C:541, 0: Wrong continued indentation (remove 6 spaces).
                                                  collection_id=collection_id,
                                            |     ^ (bad-continuation)
C:542, 0: Wrong continued indentation (remove 6 spaces).
                                                  query_id=query_id)
                                            |     ^ (bad-continuation)
C:576, 0: Wrong continued indentation (remove 6 spaces).
                                               collection_id=collection_id,
                                         |     ^ (bad-continuation)
C:577, 0: Wrong continued indentation (remove 6 spaces).
                                               query_id=query_id)
                                         |     ^ (bad-continuation)
W:  6, 0: Wildcard import watson_developer_cloud.discovery_v1 (wildcard-import)
C:433,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:473, 4: Unused variable 'training_data_set' (unused-variable)
W:481, 4: Unused variable 'query_id' (unused-variable)
W:525, 4: Unused variable 'training_query' (unused-variable)
C:544,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:581, 4: Unused variable 'training_query' (unused-variable)
W:619, 4: Unused variable 'training_example' (unused-variable)
C:644,11: Comparison to None should be 'expr is None' (singleton-comparison)
W:680, 4: Unused variable 'training_example' (unused-variable)
W:720, 4: Unused variable 'training_example' (unused-variable)
W:  7, 0: Unused import pytest (unused-import)
************* Module test.test_examples
W: 55, 0: Anomalous backslash in string: '\s'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
C: 23, 0: Unnecessary parens after u'print' keyword (superfluous-parens)
C: 29, 0: Unnecessary parens after u'print' keyword (superfluous-parens)
C: 21, 4: Import "from dotenv import load_dotenv" should be placed at the top of the module (wrong-import-position)
C:  9, 0: Imports from package os are not grouped (ungrouped-imports)
************* Module test.test_integration_speech_to_text_v1
C:  2, 0: Multiple imports on one line (pytest, os) (multiple-imports)
************* Module test.test_integration_visual_recognition
C: 21, 0: Unnecessary parens after 'not' keyword (superfluous-parens)
C: 55, 0: Final newline missing (missing-final-newline)
C: 36,19: Comparison to False should be 'not expr' or 'expr is False' (singleton-comparison)
C: 43,19: Comparison to False should be 'not expr' or 'expr is False' (singleton-comparison)
************* Module test.test_language_translator_v2
W: 42, 0: Anomalous Unicode escape in byte string: '\u'. String constant might be missing an r or u prefix. (anomalous-unicode-escape-in-string)
C: 39, 0: Wrong hanging indentation (add 2 spaces).
      "character_count": 19,
      ^ | (bad-continuation)
C: 40, 0: Wrong hanging indentation (add 2 spaces).
      "translations": [
      ^ | (bad-continuation)
C: 41, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C: 42, 0: Wrong hanging indentation (add 2 spaces).
          "translation": "Hello, how are you ? \u20ac"
          ^ | (bad-continuation)
C: 45, 0: Wrong hanging indentation (add 2 spaces).
      "word_count": 4
      ^ | (bad-continuation)
C: 67, 0: Wrong hanging indentation (add 2 spaces).
      "character_count": 22,
      ^ | (bad-continuation)
C: 68, 0: Wrong hanging indentation (add 2 spaces).
      "translations": [
      ^ | (bad-continuation)
C: 69, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C: 70, 0: Wrong hanging indentation (add 2 spaces).
          "translation": "Messi es el mejor"
          ^ | (bad-continuation)
C: 73, 0: Wrong hanging indentation (add 2 spaces).
      "word_count": 5
      ^ | (bad-continuation)
C: 82, 0: Wrong continued indentation (remove 1 space).
                                  model_id='en-es-conversational')
                                 |^ (bad-continuation)
C: 96, 0: Wrong hanging indentation (add 2 spaces).
      "models": [
      ^ | (bad-continuation)
C: 97, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C: 98, 0: Wrong hanging indentation (add 2 spaces).
          "status": "available",
          ^ | (bad-continuation)
C: 99, 0: Wrong hanging indentation (add 2 spaces).
          "model_id": "en-es-conversational",
          ^ | (bad-continuation)
C:100, 0: Wrong hanging indentation (add 2 spaces).
          "domain": "conversational",
          ^ | (bad-continuation)
C:101, 0: Wrong hanging indentation (add 2 spaces).
          "target": "es",
          ^ | (bad-continuation)
C:102, 0: Wrong hanging indentation (add 2 spaces).
          "customizable": False,
          ^ | (bad-continuation)
C:103, 0: Wrong hanging indentation (add 2 spaces).
          "source": "en",
          ^ | (bad-continuation)
C:104, 0: Wrong hanging indentation (add 2 spaces).
          "base_model_id": "",
          ^ | (bad-continuation)
C:105, 0: Wrong hanging indentation (add 2 spaces).
          "owner": "",
          ^ | (bad-continuation)
C:106, 0: Wrong hanging indentation (add 2 spaces).
          "default_model": False,
          ^ | (bad-continuation)
C:107, 0: Wrong hanging indentation (add 2 spaces).
          "name": "en-es-conversational"
          ^ | (bad-continuation)
C:109, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:110, 0: Wrong hanging indentation (add 2 spaces).
          "status": "available",
          ^ | (bad-continuation)
C:111, 0: Wrong hanging indentation (add 2 spaces).
          "model_id": "es-en",
          ^ | (bad-continuation)
C:112, 0: Wrong hanging indentation (add 2 spaces).
          "domain": "news",
          ^ | (bad-continuation)
C:113, 0: Wrong hanging indentation (add 2 spaces).
          "target": "en",
          ^ | (bad-continuation)
C:114, 0: Wrong hanging indentation (add 2 spaces).
          "customizable": True,
          ^ | (bad-continuation)
C:115, 0: Wrong hanging indentation (add 2 spaces).
          "source": "es",
          ^ | (bad-continuation)
C:116, 0: Wrong hanging indentation (add 2 spaces).
          "base_model_id": "",
          ^ | (bad-continuation)
C:117, 0: Wrong hanging indentation (add 2 spaces).
          "owner": "",
          ^ | (bad-continuation)
C:118, 0: Wrong hanging indentation (add 2 spaces).
          "default_model": True,
          ^ | (bad-continuation)
C:119, 0: Wrong hanging indentation (add 2 spaces).
          "name": "es-en"
          ^ | (bad-continuation)
C:144, 0: Wrong hanging indentation (add 2 spaces).
      "status": "available",
      ^ | (bad-continuation)
C:145, 0: Wrong hanging indentation (add 2 spaces).
      "model_id": "en-es-conversational",
      ^ | (bad-continuation)
C:146, 0: Wrong hanging indentation (add 2 spaces).
      "domain": "conversational",
      ^ | (bad-continuation)
C:147, 0: Wrong hanging indentation (add 2 spaces).
      "target": "es",
      ^ | (bad-continuation)
C:148, 0: Wrong hanging indentation (add 2 spaces).
      "customizable": False,
      ^ | (bad-continuation)
C:149, 0: Wrong hanging indentation (add 2 spaces).
      "source": "en",
      ^ | (bad-continuation)
C:150, 0: Wrong hanging indentation (add 2 spaces).
      "base_model_id": "",
      ^ | (bad-continuation)
C:151, 0: Wrong hanging indentation (add 2 spaces).
      "owner": "",
      ^ | (bad-continuation)
C:152, 0: Wrong hanging indentation (add 2 spaces).
      "default_model": False,
      ^ | (bad-continuation)
C:153, 0: Wrong hanging indentation (add 2 spaces).
      "name": "en-es-conversational"
      ^ | (bad-continuation)
C:177, 0: Wrong hanging indentation (add 2 spaces).
      "languages": [
      ^ | (bad-continuation)
C:178, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:179, 0: Wrong hanging indentation (add 2 spaces).
          "confidence": 0.477673,
          ^ | (bad-continuation)
C:180, 0: Wrong hanging indentation (add 2 spaces).
          "language": "zh"
          ^ | (bad-continuation)
C:182, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:183, 0: Wrong hanging indentation (add 2 spaces).
          "confidence": 0.262053,
          ^ | (bad-continuation)
C:184, 0: Wrong hanging indentation (add 2 spaces).
          "language": "zh-TW"
          ^ | (bad-continuation)
C:186, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:187, 0: Wrong hanging indentation (add 2 spaces).
          "confidence": 0.00958378,
          ^ | (bad-continuation)
C:188, 0: Wrong hanging indentation (add 2 spaces).
          "language": "en"
          ^ | (bad-continuation)
C:214, 0: Wrong hanging indentation (add 2 spaces).
      "languages": [
      ^ | (bad-continuation)
C:215, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:216, 0: Wrong hanging indentation (add 2 spaces).
          "name": "German",
          ^ | (bad-continuation)
C:217, 0: Wrong hanging indentation (add 2 spaces).
          "language": "de"
          ^ | (bad-continuation)
C:219, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:220, 0: Wrong hanging indentation (add 2 spaces).
          "name": "Greek",
          ^ | (bad-continuation)
C:221, 0: Wrong hanging indentation (add 2 spaces).
          "language": "el"
          ^ | (bad-continuation)
C:223, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:224, 0: Wrong hanging indentation (add 2 spaces).
          "name": "English",
          ^ | (bad-continuation)
C:225, 0: Wrong hanging indentation (add 2 spaces).
          "language": "en"
          ^ | (bad-continuation)
C:227, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:228, 0: Wrong hanging indentation (add 2 spaces).
          "name": "Esperanto",
          ^ | (bad-continuation)
C:229, 0: Wrong hanging indentation (add 2 spaces).
          "language": "eo"
          ^ | (bad-continuation)
C:231, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:232, 0: Wrong hanging indentation (add 2 spaces).
          "name": "Spanish",
          ^ | (bad-continuation)
C:233, 0: Wrong hanging indentation (add 2 spaces).
          "language": "es"
          ^ | (bad-continuation)
C:235, 0: Wrong hanging indentation (add 2 spaces).
        {
        ^ | (bad-continuation)
C:236, 0: Wrong hanging indentation (add 2 spaces).
          "name": "Chinese",
          ^ | (bad-continuation)
C:237, 0: Wrong hanging indentation (add 2 spaces).
          "language": "zh"
          ^ | (bad-continuation)
W: 22, 0: Wildcard import watson_developer_cloud.language_translator_v2 (wildcard-import)
W: 58, 4: Unused variable 'translation_result' (unused-variable)
W: 87, 4: Unused variable 'translation_result' (unused-variable)
W:134, 4: Unused variable 'translation_models' (unused-variable)
W:166, 4: Unused variable 'translation_model' (unused-variable)
W:203, 4: Unused variable 'identified_languages' (unused-variable)
W:252, 4: Unused variable 'identifiable_languages' (unused-variable)
W: 20, 0: Unused LanguageTranslatorV2 imported from watson_developer_cloud (unused-import)
W: 21, 0: Unused WatsonException imported from watson_developer_cloud (unused-import)
************* Module test.test_natural_language_understanding
C: 21, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 23, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 27, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 31, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 35, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 39, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 43, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 47, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 51, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 55, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 66, 0: Unnecessary parens after 'assert' keyword (superfluous-parens)
C: 69, 0: Wrong continued indentation (add 4 spaces).
                    reason='credentials may come from VCAP_SERVICES')
                    ^   | (bad-continuation)
C: 75, 0: Wrong continued indentation (add 1 space).
                                          url='https://bogus.com')
                                          ^| (bad-continuation)
C:109, 0: Wrong continued indentation (add 8 spaces).
                     emotion=EmotionOptions(document=False)),
                     ^       | (bad-continuation)
C:124, 0: Wrong continued indentation (add 9 spaces).
                    emotion=EmotionOptions(document=False)),
                    ^        | (bad-continuation)
E: 61,12: No value for argument 'version' in constructor call (no-value-for-parameter)
W:  3, 0: Unused WatsonException imported from watson_developer_cloud (unused-import)
************* Module test.test_personality_insights_v3
W: 35, 4: Unused variable 'profile_model' (unused-variable)
W: 40,-1: String statement has no effect (pointless-string-statement)
W: 65, 4: Unused variable 'profile_model' (unused-variable)
W: 70,-1: String statement has no effect (pointless-string-statement)
W: 85, 8: Unused variable 'response' (unused-variable)
W:101,-1: String statement has no effect (pointless-string-statement)
W:125, 4: Unused variable 'profile_model' (unused-variable)
W:  4, 0: Unused import json (unused-import)
************* Module test.test_retrieve_and_rank_v1
C: 22, 0: Wrong continued indentation (add 4 spaces).
              match_querystring=True,
              ^   | (bad-continuation)
C: 23, 0: Wrong continued indentation (add 4 spaces).
              body=listrank_response, status=200,
              ^   | (bad-continuation)
C: 24, 0: Wrong continued indentation (add 4 spaces).
              content_type='application/json')
              ^   | (bad-continuation)
C: 56, 0: Exactly one space required after assignment
    rank_response =  '{"ranker_id":"3b140ax14-rank-10383",' \
                  ^ (bad-whitespace)
C:116, 0: Wrong continued indentation (add 4 spaces).
              match_querystring=True,
              ^   | (bad-continuation)
C:117, 0: Wrong continued indentation (add 4 spaces).
              body=listcluster_response, status=200,
              ^   | (bad-continuation)
C:118, 0: Wrong continued indentation (add 4 spaces).
              content_type='application/json')
              ^   | (bad-continuation)
C:131, 0: Wrong continued indentation (add 4 spaces).
              match_querystring=True,
              ^   | (bad-continuation)
C:132, 0: Wrong continued indentation (add 4 spaces).
              body=createcluster_response, status=200,
              ^   | (bad-continuation)
C:133, 0: Wrong continued indentation (add 4 spaces).
              content_type='application/json')
              ^   | (bad-continuation)
C:196, 0: Exactly one space required after comma
        config = retrieve_and_rank.create_config(CLUSTER_ID, 'exampleconfig',   config=config_data)
                                                                            ^ (bad-whitespace)
C:257, 0: Exactly one space required after comma
    collection = retrieve_and_rank.create_collection(CLUSTER_ID, 'examplecollection',  'exampleconfig')
                                                                                    ^ (bad-whitespace)
************* Module test.test_speech_to_text_v1
C:  2, 0: Exactly one space required after comma
import os,json,pytest
         ^ (bad-whitespace)
C:  2, 0: Exactly one space required after comma
import os,json,pytest
              ^ (bad-whitespace)
C:112, 0: Exactly one space required after comma
    get_corpora_url = '{0}/{1}'.format(corpora_url.format('customid'),'corpus')
                                                                     ^ (bad-whitespace)
C:157, 0: Exactly one space required after comma
    responses.add(responses.POST, word_url.format('custid','IEEE'),
                                                          ^ (bad-whitespace)
C:158, 0: Wrong continued indentation (add 1 space).
                 body='{"get response": "yep"}',
                 ^| (bad-continuation)
C:159, 0: Wrong continued indentation (add 1 space).
                 status=200,
                 ^| (bad-continuation)
C:160, 0: Wrong continued indentation (add 1 space).
                 content_type='application/json')
                 ^| (bad-continuation)
C:173, 0: Wrong continued indentation (add 1 space).
                 body='{"get response": "yep"}',
                 ^| (bad-continuation)
C:174, 0: Wrong continued indentation (add 1 space).
                 status=200,
                 ^| (bad-continuation)
C:175, 0: Wrong continued indentation (add 1 space).
                 content_type='application/json')
                 ^| (bad-continuation)
C:178, 0: Wrong continued indentation (add 1 space).
                 body='{"get response": "yep"}',
                 ^| (bad-continuation)
C:179, 0: Wrong continued indentation (add 1 space).
                 status=200,
                 ^| (bad-continuation)
C:180, 0: Wrong continued indentation (add 1 space).
                 content_type='application/json')
                 ^| (bad-continuation)
C:183, 0: Wrong hanging indentation (add 4 spaces).
    username="username", password="password")
    ^   | (bad-continuation)
C:  2, 0: Multiple imports on one line (os, json, pytest) (multiple-imports)
W: 64, 4: Unused variable 'posted_data' (unused-variable)
************* Module test.test_text_to_speech_v1
W: 47, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 61, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 64, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 67, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 70, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 73, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 93, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 96, 0: Unnecessary semicolon (unnecessary-semicolon)
C: 97, 0: Exactly one space required after comma
    responses.add(responses.GET, "{0}/{1}/words/{2}".format(base_url, "custid","word"),
                                                                              ^ (bad-whitespace)
W: 99, 0: Unnecessary semicolon (unnecessary-semicolon)
C:100, 0: Exactly one space required after comma
    responses.add(responses.POST, "{0}/{1}/words/{2}".format(base_url, "custid","word"),
                                                                               ^ (bad-whitespace)
W:102, 0: Unnecessary semicolon (unnecessary-semicolon)
C:103, 0: Exactly one space required after comma
    responses.add(responses.PUT, "{0}/{1}/words/{2}".format(base_url, "custid","word"),
                                                                              ^ (bad-whitespace)
W:105, 0: Unnecessary semicolon (unnecessary-semicolon)
C:106, 0: Exactly one space required after comma
    responses.add(responses.DELETE, "{0}/{1}/words/{2}".format(base_url, "custid","word"),
                                                                                 ^ (bad-whitespace)
W:108, 0: Unnecessary semicolon (unnecessary-semicolon)
W:  4, 0: Unused import pytest (unused-import)
************* Module test.test_tone_analyzer_v3
C: 24, 0: Wrong continued indentation (add 50 spaces).
            username="username", password="password")
            ^                                                 | (bad-continuation)
C: 37, 0: No space allowed after bracket
    tone_args = { 'version': '2016-05-19', 'sentences': 'false' }
                ^ (bad-whitespace)
C: 37, 0: No space allowed before bracket
    tone_args = { 'version': '2016-05-19', 'sentences': 'false' }
                                                                ^ (bad-whitespace)
C: 48, 0: Wrong continued indentation (add 50 spaces).
            username="username", password="password")
            ^                                                 | (bad-continuation)
C: 65, 0: No space allowed after bracket
    tone_args = { 'version': '2016-05-19', 'sentences': 'false' }
                ^ (bad-whitespace)
C: 65, 0: No space allowed before bracket
    tone_args = { 'version': '2016-05-19', 'sentences': 'false' }
                                                                ^ (bad-whitespace)
C: 76, 0: Wrong continued indentation (add 50 spaces).
            username="username", password="password")
            ^                                                 | (bad-continuation)
C:103, 0: Wrong continued indentation (add 46 spaces).
            username="username", password="password")
            ^                                             | (bad-continuation)
C:124, 0: Wrong hanging indentation (remove 4 spaces).
            "code": error_code,
        |   ^ (bad-continuation)
C:125, 0: Wrong hanging indentation (remove 4 spaces).
            "sub_code": "C00012",
        |   ^ (bad-continuation)
C:126, 0: Wrong hanging indentation (remove 4 spaces).
            "error": error_message
        |   ^ (bad-continuation)
C:135, 0: Wrong continued indentation (add 46 spaces).
            username="username", password="password")
            ^                                             | (bad-continuation)
W:120, 4: Unused variable 'tone_args' (unused-variable)
************* Module test.test_tradeoff_analytics_v1
C: 57, 0: Trailing whitespace (trailing-whitespace)
C: 63, 0: Wrong hanging indentation (add 4 spaces).
        json.load(data_file),
        ^   | (bad-continuation)
C: 64, 0: Wrong hanging indentation (add 4 spaces).
        generate_visualization=False,
        ^   | (bad-continuation)
C: 65, 0: Wrong hanging indentation (add 4 spaces).
        find_preferable_options=True)
        ^   | (bad-continuation)
C: 80, 0: Trailing whitespace (trailing-whitespace)
C: 83, 0: Trailing whitespace (trailing-whitespace)
C: 87, 0: Wrong hanging indentation (add 4 spaces).
        json.load(data_file),
        ^   | (bad-continuation)
C: 88, 0: Wrong hanging indentation (add 4 spaces).
        find_preferable_options=True)
        ^   | (bad-continuation)
************* Module test.test_visual_recognition_v3
C: 17, 0: Exactly one space required before assignment
        response= {
                ^ (bad-whitespace)
C: 18, 0: Wrong hanging indentation (remove 4 spaces).
                "classifier_id": "bogusnumber",
            |   ^ (bad-continuation)
C: 19, 0: Wrong hanging indentation (remove 4 spaces).
                "name": "Dog Breeds",
            |   ^ (bad-continuation)
C: 20, 0: Wrong hanging indentation (remove 4 spaces).
                "owner": "58b61352-678c-44d1-9f40-40edf4ea8d19",
            |   ^ (bad-continuation)
C: 21, 0: Wrong hanging indentation (remove 4 spaces).
                "status": "failed",
            |   ^ (bad-continuation)
C: 22, 0: Wrong hanging indentation (remove 4 spaces).
                "created": "2017-08-25T06:39:01.968Z",
            |   ^ (bad-continuation)
C: 23, 0: Wrong hanging indentation (remove 4 spaces).
                "classes": [{"class": "goldenretriever"}]
            |   ^ (bad-continuation)
C: 56, 0: Exactly one space required before assignment
        response= { "classifiers": [
                ^ (bad-whitespace)
C: 56, 0: No space allowed after bracket
        response= { "classifiers": [
                  ^ (bad-whitespace)
C: 84, 0: Exactly one space required before assignment
        response= {
                ^ (bad-whitespace)
C: 85, 0: Wrong hanging indentation (remove 4 spaces).
                "classifier_id": "DogBreeds_2014254824",
            |   ^ (bad-continuation)
C: 86, 0: Wrong hanging indentation (remove 4 spaces).
                "name": "Dog Breeds",
            |   ^ (bad-continuation)
C: 87, 0: Wrong hanging indentation (remove 4 spaces).
                "owner": "58b61352-678c-44d1-9f40-40edf4ea8d19",
            |   ^ (bad-continuation)
C: 88, 0: Wrong hanging indentation (remove 4 spaces).
                "status": "failed",
            |   ^ (bad-continuation)
C: 89, 0: Wrong hanging indentation (remove 4 spaces).
                "created": "2017-08-25T06:39:01.968Z",
            |   ^ (bad-continuation)
C: 90, 0: Wrong hanging indentation (remove 4 spaces).
                "classes": [{"class": "goldenretriever"}]
            |   ^ (bad-continuation)
C:111, 0: Exactly one space required before assignment
        response= {
                ^ (bad-whitespace)
C:112, 0: Wrong hanging indentation (remove 4 spaces).
                "classifier_id": "bogusid",
            |   ^ (bad-continuation)
C:113, 0: Wrong hanging indentation (remove 4 spaces).
                "name": "Insurance Claims",
            |   ^ (bad-continuation)
C:114, 0: Wrong hanging indentation (remove 4 spaces).
                "owner": "58b61352-678c-44d1-9f40-40edf4ea8d19",
            |   ^ (bad-continuation)
C:115, 0: Wrong hanging indentation (remove 4 spaces).
                "status": "ready",
            |   ^ (bad-continuation)
C:116, 0: Wrong hanging indentation (remove 4 spaces).
                "created": "2017-07-17T22:17:14.860Z",
            |   ^ (bad-continuation)
C:117, 0: Wrong hanging indentation (remove 4 spaces).
                "classes": [
            |   ^ (bad-continuation)
C:140, 0: Wrong hanging indentation (remove 4 spaces).
                {"image": "test.jpg",
            |   ^ (bad-continuation)
C:142, 0: Wrong hanging indentation (add 1 space).
                    {"classes": [
                    ^| (bad-continuation)
C:150, 0: Wrong continued indentation (add 1 space).
                    "classifier_id": "default",
                    ^| (bad-continuation)
C:151, 0: Wrong continued indentation (add 1 space).
                    "name": "default"}
                    ^| (bad-continuation)
C:155, 0: Wrong continued indentation (add 8 spaces).
            "custom_classes": 0,
            ^       | (bad-continuation)
C:156, 0: Wrong continued indentation (add 8 spaces).
            "images_processed": 1
            ^       | (bad-continuation)
C:157, 0: Wrong continued indentation (add 11 spaces).
        }
        ^          | (bad-continuation)
ehdsouza commented 6 years ago
(MY_ENV) ➜  python-sdk git:(v1.0.0) pylint test
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)