-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
There are many errors that need to be fixed as reported by pylint.
Once fixed, remove the continue-on-error: true line from the github workflow on the Lint step and update the CONTRIBUTING guide to remove the reference to this issue.
************* Module maap.config_reader
maap/config_reader.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/config_reader.py:60:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
maap/config_reader.py:61:15: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/config_reader.py:67:11: W0718: Catching too general exception Exception (broad-exception-caught)
maap/config_reader.py:68:8: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
maap/config_reader.py:56:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
maap/config_reader.py:71:0: C0115: Missing class docstring (missing-class-docstring)
maap/config_reader.py:78:8: C0103: Attribute name "_PROXY_GRANTING_TICKET" doesn't conform to snake_case naming style (invalid-name)
maap/config_reader.py:71:0: R0902: Too many instance attributes (27/7) (too-many-instance-attributes)
maap/config_reader.py:106:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/config_reader.py:71:0: R0903: Too few public methods (1/2) (too-few-public-methods)
maap/config_reader.py:4:0: C0411: standard import "urllib.parse.urlparse" should be placed before third party import "requests" (wrong-import-order)
maap/config_reader.py:5:0: C0411: standard import "collections.namedtuple" should be placed before third party import "requests" (wrong-import-order)
maap/config_reader.py:6:0: C0411: standard import "functools.cache" should be placed before third party import "requests" (wrong-import-order)
maap/config_reader.py:4:0: W0611: Unused urlunsplit imported from urllib.parse (unused-import)
maap/config_reader.py:5:0: W0611: Unused namedtuple imported from collections (unused-import)
************* Module maap.Profile
maap/Profile.py:31:0: C0305: Trailing newlines (trailing-newlines)
maap/Profile.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/Profile.py:1:0: C0103: Module name "Profile" doesn't conform to snake_case naming style (invalid-name)
maap/Profile.py:15:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/Profile.py:19:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/Profile.py:24:8: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
maap/Profile.py:6:0: R0903: Too few public methods (1/2) (too-few-public-methods)
maap/Profile.py:2:0: C0411: standard import "logging" should be placed before third party import "requests" (wrong-import-order)
maap/Profile.py:3:0: C0411: standard import "json" should be placed before third party import "requests" (wrong-import-order)
************* Module maap.AWS
maap/AWS.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/AWS.py:1:0: C0103: Module name "AWS" doesn't conform to snake_case naming style (invalid-name)
maap/AWS.py:12:4: R0913: Too many arguments (6/5) (too-many-arguments)
maap/AWS.py:27:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/AWS.py:31:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/AWS.py:39:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/AWS.py:46:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/AWS.py:53:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/AWS.py:61:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/AWS.py:69:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/AWS.py:73:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
************* Module maap.Result
maap/Result.py:206:9: W0511: TODO: make self._location an array and consolidate with _relatedUrls (fixme)
maap/Result.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/Result.py:1:0: C0103: Module name "Result" doesn't conform to snake_case naming style (invalid-name)
************* Module maap.maap
maap/maap.py:95:8: C0103: Attribute name "_cmrFileUrl" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:96:8: C0103: Attribute name "_apiHeader" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:23:4: C0103: Method name "getData" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:31:19: E1101: Instance of 'Result' has no '_downloadname' member (no-member)
maap/Result.py:53:12: W0702: No exception type(s) specified (bare-except)
maap/Result.py:44:27: E1136: Value 'url' is unsubscriptable (unsubscriptable-object)
maap/Result.py:55:16: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
maap/Result.py:64:4: C0103: Method name "getLocalPath" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:70:4: C0103: Method name "_convertS3toHttp" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:87:4: C0103: Method name "_getHttpData" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:89:16: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/Result.py:94:41: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/Result.py:106:28: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/Result.py:109:49: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/Result.py:119:24: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/Result.py:137:4: C0103: Method name "getDownloadUrl" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:145:4: C0103: Method name "getHttpUrl" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:152:4: C0103: Method name "getS3Url" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:159:4: C0103: Method name "getDescription" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:163:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/Result.py:170:0: C0115: Missing class docstring (missing-class-docstring)
maap/Result.py:175:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/Result.py:181:0: C0115: Missing class docstring (missing-class-docstring)
maap/Result.py:185:8: C0103: Attribute name "_awsKey" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:186:8: C0103: Attribute name "_awsSecret" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:191:8: C0103: Attribute name "_relatedUrls" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:194:8: C0103: Attribute name "_OPeNDAPUrl" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:195:8: C0103: Attribute name "_BrowseUrl" doesn't conform to snake_case naming style (invalid-name)
maap/Result.py:181:0: R0902: Too many instance attributes (11/7) (too-many-instance-attributes)
maap/Result.py:182:4: R0913: Too many arguments (7/5) (too-many-arguments)
maap/Result.py:242:8: W0702: No exception type(s) specified (bare-except)
maap/Result.py:253:8: W0702: No exception type(s) specified (bare-except)
maap/Result.py:249:31: E1136: Value 'filter(lambda x: x['Type'] == 'OPeNDAP', urls)' is unsubscriptable (unsubscriptable-object)
maap/Result.py:256:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/Result.py:256:4: C0103: Method name "getOPeNDAPUrl" doesn't conform to snake_case naming style (invalid-name)
************* Module maap.singleton
maap/singleton.py:7:0: C0304: Final newline missing (missing-final-newline)
maap/singleton.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/singleton.py:1:0: C0115: Missing class docstring (missing-class-docstring)
************* Module maap.Dictlist
maap/Dictlist.py:7:0: C0304: Final newline missing (missing-final-newline)
maap/Dictlist.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/Dictlist.py:1:0: C0103: Module name "Dictlist" doesn't conform to snake_case naming style (invalid-name)
maap/Dictlist.py:1:0: C0115: Missing class docstring (missing-class-docstring)
maap/Dictlist.py:6:12: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
************* Module maap.xmlParser
maap/xmlParser.py:20:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens)
maap/xmlParser.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/xmlParser.py:1:0: C0103: Module name "xmlParser" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:3:4: W0622: Redefining built-in 'zip' (redefined-builtin)
maap/xmlParser.py:10:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/xmlParser.py:10:0: C0103: Function name "ComaSeperatedToListJson" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:10:28: C0103: Argument name "pathToFile" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:13:4: C0103: Variable name "fileLines" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:13:14: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
maap/xmlParser.py:16:4: C0103: Variable name "listJson" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:27:18: E0602: Undefined variable 'izip' (undefined-variable)
maap/xmlParser.py:13:14: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
maap/xmlParser.py:10:55: W0613: Unused argument 'data' (unused-argument)
maap/xmlParser.py:33:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/xmlParser.py:33:0: C0103: Function name "ComaSeperatedDataToListJson" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:35:4: C0103: Variable name "listJson" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:42:20: E0602: Undefined variable 'izip' (undefined-variable)
maap/xmlParser.py:74:20: C0103: Variable name "aDict" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:76:20: C0103: Variable name "aDict" doesn't conform to snake_case naming style (invalid-name)
maap/xmlParser.py:3:4: W0611: Unused zip imported from future_builtins (unused-import)
maap/xmlParser.py:6:8: W0611: Unused izip imported from itertools as zip (unused-import)
maap/maap.py:104:0: C0301: Line too long (195/180) (line-too-long)
maap/maap.py:115:0: C0301: Line too long (200/180) (line-too-long)
maap/maap.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/maap.py:28:0: C0115: Missing class docstring (missing-class-docstring)
maap/maap.py:33:8: C0103: Attribute name "_CMR" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:34:8: C0103: Attribute name "_DPS" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:28:0: R0205: Class 'MAAP' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
maap/maap.py:53:43: C0103: Argument name "objectKey" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:63:4: C0103: Method name "searchGranule" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:79:4: C0103: Method name "downloadGranule" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:94:8: W0212: Access to a protected member _dps of a client class (protected-access)
maap/maap.py:95:8: W0212: Access to a protected member _cmrFileUrl of a client class (protected-access)
maap/maap.py:96:8: W0212: Access to a protected member _apiHeader of a client class (protected-access)
maap/maap.py:98:15: W0212: Access to a protected member _getHttpData of a client class (protected-access)
maap/maap.py:100:4: C0103: Method name "getCallFromEarthdataQuery" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:111:4: C0103: Method name "getCallFromCmrUri" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:123:4: C0103: Method name "searchCollection" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:133:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:133:4: C0103: Method name "getQueues" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:136:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/maap.py:136:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:139:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:145:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:145:4: C0103: Method name "registerAlgorithm" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:147:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
maap/maap.py:153:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/maap.py:153:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:156:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:160:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:177:8: W1201: Use lazy % formatting in logging functions (logging-not-lazy)
maap/maap.py:177:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:180:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:180:4: C0103: Method name "listAlgorithms" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:183:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/maap.py:183:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:186:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:192:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:192:4: C0103: Method name "describeAlgorithm" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:195:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/maap.py:195:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:198:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:204:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:204:4: C0103: Method name "publishAlgorithm" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:208:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/maap.py:208:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:213:19: W3101: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:220:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:220:4: C0103: Method name "deleteAlgorithm" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:223:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/maap.py:223:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:226:19: W3101: Missing timeout argument for method 'requests.delete' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:233:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:233:4: C0103: Method name "getJob" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:239:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:239:4: C0103: Method name "getJobStatus" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:244:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:244:4: C0103: Method name "getJobResult" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:249:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:249:4: C0103: Method name "getJobMetrics" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:254:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:254:4: C0103: Method name "cancelJob" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:259:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:259:4: C0103: Method name "listJobs" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:260:11: C0121: Comparison 'username == None' should be 'username is None' (singleton-comparison)
maap/maap.py:264:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/maap.py:264:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/maap.py:267:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:273:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:273:4: C0103: Method name "submitJob" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:273:4: R0913: Too many arguments (6/5) (too-many-arguments)
maap/maap.py:281:8: W0702: No exception type(s) specified (bare-except)
maap/maap.py:282:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
maap/maap.py:285:4: C0103: Method name "uploadFiles" doesn't conform to snake_case naming style (invalid-name)
maap/maap.py:298:12: W0612: Unused variable 'response' (unused-variable)
maap/maap.py:302:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:304:19: R1735: Consider using '{"granule_ur": granule_ur}' instead of a call to 'dict'. (use-dict-literal)
maap/maap.py:305:20: R1735: Consider using '{"Accept": 'application/json'}' instead of a call to 'dict'. (use-dict-literal)
maap/maap.py:310:19: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/maap.py:312:19: R1735: Consider using '{"granule_ur": granule_ur}' instead of a call to 'dict'. (use-dict-literal)
maap/maap.py:313:20: R1735: Consider using '{"Accept": 'application/json'}' instead of a call to 'dict'. (use-dict-literal)
maap/maap.py:317:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/maap.py:317:4: W0102: Dangerous default value {} as argument (dangerous-default-value)
maap/maap.py:318:8: C0415: Import outside toplevel (mapboxgl.viz.RasterTilesViz) (import-outside-toplevel)
maap/maap.py:324:23: R1735: Consider using '{"url": browse_file, **presenter.display_config}' instead of a call to 'dict'. (use-dict-literal)
maap/maap.py:28:0: R0904: Too many public methods (22/20) (too-many-public-methods)
maap/maap.py:4:0: C0411: standard import "uuid" should be placed before third party import "boto3" (wrong-import-order)
maap/maap.py:5:0: C0411: standard import "urllib.parse" should be placed before third party import "boto3" (wrong-import-order)
maap/maap.py:6:0: C0411: standard import "os" should be placed before third party import "boto3" (wrong-import-order)
maap/maap.py:7:0: C0411: standard import "sys" should be placed before third party import "boto3" (wrong-import-order)
maap/maap.py:7:0: W0611: Unused import sys (unused-import)
maap/maap.py:9:0: W0611: Unused importlib_resources imported as resources (unused-import)
************* Module maap.utils.Presenter
maap/utils/Presenter.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/utils/Presenter.py:1:0: C0103: Module name "Presenter" doesn't conform to snake_case naming style (invalid-name)
maap/utils/Presenter.py:18:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/Presenter.py:23:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/Presenter.py:34:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/Presenter.py:34:4: E0202: An attribute defined in maap.utils.Presenter line 13 hides this method (method-hidden)
************* Module maap.utils.CMR
maap/utils/CMR.py:110:0: C0301: Line too long (195/180) (line-too-long)
maap/utils/CMR.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/utils/CMR.py:1:0: C0103: Module name "CMR" doesn't conform to snake_case naming style (invalid-name)
maap/utils/CMR.py:35:23: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
maap/utils/CMR.py:49:37: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/utils/CMR.py:51:12: R1723: Unnecessary "else" after "break", remove the "else" and de-indent the code inside it (no-else-break)
maap/utils/CMR.py:106:4: C0103: Method name "generateGranuleCallFromEarthDataRequest" doesn't conform to snake_case naming style (invalid-name)
maap/utils/CMR.py:136:4: C0103: Method name "generateCallFromEarthDataQueryString" doesn't conform to snake_case naming style (invalid-name)
maap/utils/CMR.py:2:0: C0411: third party import "requests" should be placed before first party import "maap.Dictlist.Dictlist" (wrong-import-order)
maap/utils/CMR.py:3:0: C0411: standard import "xml.etree.ElementTree" should be placed before third party import "requests" and first party import "maap.Dictlist.Dictlist" (wrong-import-order)
maap/utils/CMR.py:5:0: C0411: standard import "logging" should be placed before third party import "requests" and first party imports "maap.Dictlist.Dictlist", "maap.xmlParser.XmlDictConfig" (wrong-import-order)
maap/utils/CMR.py:6:0: C0411: standard import "urllib.parse" should be placed before third party import "requests" and first party imports "maap.Dictlist.Dictlist", "maap.xmlParser.XmlDictConfig" (wrong-import-order)
maap/utils/CMR.py:7:0: C0411: standard import "json" should be placed before third party import "requests" and first party imports "maap.Dictlist.Dictlist", "maap.xmlParser.XmlDictConfig" (wrong-import-order)
maap/utils/CMR.py:4:0: C0412: Imports from package maap are not grouped (ungrouped-imports)
************* Module maap.utils.requests_utils
maap/utils/requests_utils.py:10:1: W0511: TODO: Replace with http.HTTPMethod once we upgrade to Python>3.11 (fixme)
maap/utils/requests_utils.py:47:1: W0511: TODO: Explore consolidating all requests from maap-py into this class (fixme)
maap/utils/requests_utils.py:55:9: W0511: TODO: Add support for request type DELETE (fixme)
maap/utils/requests_utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/utils/requests_utils.py:11:0: C0115: Missing class docstring (missing-class-docstring)
maap/utils/requests_utils.py:24:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/requests_utils.py:40:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/requests_utils.py:48:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/requests_utils.py:51:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
maap/utils/requests_utils.py:54:4: R1720: Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it (no-else-raise)
maap/utils/requests_utils.py:58:15: W3101: Missing timeout argument for method 'requests.request' can cause your program to hang indefinitely (missing-timeout)
maap/utils/requests_utils.py:67:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/requests_utils.py:3:0: C0411: standard import "logging" should be placed before first party import "maap.config_reader.MaapConfig" (wrong-import-order)
maap/utils/requests_utils.py:4:0: C0411: third party import "requests" should be placed before first party import "maap.config_reader.MaapConfig" (wrong-import-order)
maap/utils/requests_utils.py:5:0: C0411: standard import "enum.Enum" should be placed before third party import "requests" and first party import "maap.config_reader.MaapConfig" (wrong-import-order)
************* Module maap.utils.algorithm_utils
maap/utils/algorithm_utils.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/utils/algorithm_utils.py:15:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/algorithm_utils.py:16:18: R1735: Consider using '{}' instead of a call to 'dict'. (use-dict-literal)
maap/utils/algorithm_utils.py:17:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
maap/utils/algorithm_utils.py:22:0: C0116: Missing function or method docstring (missing-function-docstring)
maap/utils/algorithm_utils.py:2:0: W0611: Unused import json (unused-import)
maap/utils/algorithm_utils.py:4:0: W0611: Unused import yaml (unused-import)
maap/utils/algorithm_utils.py:5:0: W0611: Unused dump imported from yaml as yaml_dump (unused-import)
maap/utils/algorithm_utils.py:7:4: W0611: Unused CDumper imported from yaml as Dumper (unused-import)
maap/utils/algorithm_utils.py:9:4: W0611: Unused Dumper imported from yaml (unused-import)
************* Module maap.utils.endpoints
maap/utils/endpoints.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module maap.dps.DpsHelper
maap/dps/DpsHelper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/dps/DpsHelper.py:1:0: C0103: Module name "DpsHelper" doesn't conform to snake_case naming style (invalid-name)
maap/dps/DpsHelper.py:11:0: C0115: Missing class docstring (missing-class-docstring)
maap/dps/DpsHelper.py:37:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/DpsHelper.py:37:4: R0914: Too many local variables (18/15) (too-many-locals)
maap/dps/DpsHelper.py:47:11: C0117: Consider changing "not 'username' in kwargs" to "'username' not in kwargs" (unnecessary-negation)
maap/dps/DpsHelper.py:54:12: W0702: No exception type(s) specified (bare-except)
maap/dps/DpsHelper.py:61:12: W0702: No exception type(s) specified (bare-except)
maap/dps/DpsHelper.py:74:25: C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
maap/dps/DpsHelper.py:89:8: C0206: Consider iterating with .items() (consider-using-dict-items)
maap/dps/DpsHelper.py:145:8: W0702: No exception type(s) specified (bare-except)
maap/dps/DpsHelper.py:110:16: W3101: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout)
maap/dps/DpsHelper.py:115:26: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/dps/DpsHelper.py:115:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/dps/DpsHelper.py:116:26: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/dps/DpsHelper.py:116:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/dps/DpsHelper.py:141:16: W0702: No exception type(s) specified (bare-except)
maap/dps/DpsHelper.py:128:20: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
maap/dps/DpsHelper.py:129:33: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/dps/DpsHelper.py:132:38: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/dps/DpsHelper.py:37:4: R0912: Too many branches (15/12) (too-many-branches)
maap/dps/DpsHelper.py:37:4: R0915: Too many statements (56/50) (too-many-statements)
maap/dps/DpsHelper.py:37:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
maap/dps/DpsHelper.py:149:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
maap/dps/DpsHelper.py:11:0: R0903: Too few public methods (1/2) (too-few-public-methods)
maap/dps/DpsHelper.py:3:0: C0411: standard import "xml.etree.ElementTree" should be placed before third party import "requests" (wrong-import-order)
maap/dps/DpsHelper.py:4:0: C0411: standard import "logging" should be placed before third party import "requests" (wrong-import-order)
maap/dps/DpsHelper.py:5:0: C0411: standard import "json" should be placed before third party import "requests" (wrong-import-order)
maap/dps/DpsHelper.py:6:0: C0411: standard import "os.path.exists" should be placed before third party import "requests" (wrong-import-order)
************* Module maap.dps.dps_job
maap/dps/dps_job.py:64:0: C0303: Trailing whitespace (trailing-whitespace)
maap/dps/dps_job.py:129:0: C0301: Line too long (230/180) (line-too-long)
maap/dps/dps_job.py:212:0: C0301: Line too long (878/180) (line-too-long)
maap/dps/dps_job.py:1:0: C0114: Missing module docstring (missing-module-docstring)
maap/dps/dps_job.py:16:11: W0212: Access to a protected member __backoff_maxtime of a client class (protected-access)
maap/dps/dps_job.py:20:11: W0212: Access to a protected member __max_value of a client class (protected-access)
maap/dps/dps_job.py:23:0: R0902: Too many instance attributes (49/7) (too-many-instance-attributes)
maap/dps/dps_job.py:63:25: R1735: Consider using '{}' instead of a call to 'dict'. (use-dict-literal)
maap/dps/dps_job.py:65:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:75:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:78:25: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
maap/dps/dps_job.py:78:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
maap/dps/dps_job.py:82:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:88:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:94:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:99:12: W0702: No exception type(s) specified (bare-except)
maap/dps/dps_job.py:104:12: W0702: No exception type(s) specified (bare-except)
maap/dps/dps_job.py:108:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:142:4: R0912: Too many branches (19/12) (too-many-branches)
maap/dps/dps_job.py:217:20: C0103: Variable name "eachOutput" doesn't conform to snake_case naming style (invalid-name)
maap/dps/dps_job.py:221:20: C0103: Variable name "eachOutput" doesn't conform to snake_case naming style (invalid-name)
maap/dps/dps_job.py:222:20: E1101: Instance of 'DPSJob' has no 'traceback' member (no-member)
maap/dps/dps_job.py:256:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:260:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:269:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:273:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:282:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:286:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:295:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:299:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:308:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:312:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:321:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:325:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:334:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:338:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:347:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:351:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:360:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:364:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:373:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:377:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:386:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:390:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:399:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:403:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:412:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:416:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:425:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:429:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:438:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:442:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:451:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:455:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:464:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:468:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:477:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:481:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:490:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:494:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:503:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:507:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:516:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:520:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:529:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:533:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:542:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:546:4: R1711: Useless return at end of function or method (useless-return)
maap/dps/dps_job.py:555:4: C0116: Missing function or method docstring (missing-function-docstring)
maap/dps/dps_job.py:38:8: W0238: Unused private member `DPSJob.__not_self_signed` (unused-private-member)
maap/dps/dps_job.py:62:8: W0238: Unused private member `DPSJob.__traceback` (unused-private-member)
maap/dps/dps_job.py:23:0: R0904: Too many public methods (34/20) (too-many-public-methods)
maap/dps/dps_job.py:6:0: C0411: standard import "urllib.parse.urljoin" should be placed before third party import "backoff" (wrong-import-order)
maap/dps/dps_job.py:1:0: W0611: Unused import json (unused-import)
maap/dps/dps_job.py:3:0: W0611: Unused import os (unused-import)
maap/dps/dps_job.py:6:0: W0611: Unused urljoin imported from urllib.parse (unused-import)
------------------------------------------------------------------
Your code has been rated at 6.43/10 (previous run: 6.43/10, +0.00)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working