************* Module sciris
sciris/__init__.py:11:0: W0311: Bad indentation. Found 2 spaces, expected 4 (bad-indentation)
sciris/__init__.py:29:4: W0622: Redefining built-in 'help' (redefined-builtin)
sciris/__init__.py:20:8: W1508: os.getenv default type is builtins.bool. Expected str or None. (invalid-envvar-default)
************* Module sciris.sc_colors
sciris/sc_colors.py:394:0: C0301: Line too long (208/200) (line-too-long)
sciris/sc_colors.py:821:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:822:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:823:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:824:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:825:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:826:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:827:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:828:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:829:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:830:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:831:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:832:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:833:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:834:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:835:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:836:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:837:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:838:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:839:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:840:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:841:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:842:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:843:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:844:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:845:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:846:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:847:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:848:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:849:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:850:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:851:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:852:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_colors.py:883:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:884:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:885:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:886:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:887:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:888:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:889:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:890:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:891:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:892:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:893:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:894:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:895:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:896:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:897:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:898:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:899:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:900:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:901:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:902:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:903:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:904:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:905:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:906:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:907:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:908:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:909:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:910:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:911:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:912:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:913:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:914:0: C0301: Line too long (220/200) (line-too-long)
sciris/sc_colors.py:1001:0: C0304: Final newline missing (missing-final-newline)
sciris/sc_colors.py:137:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/sc_colors.py:202:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_colors.py:202:23: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:236:4: C0415: Import outside toplevel (numpy.array, numpy.zeros) (import-outside-toplevel)
sciris/sc_colors.py:245:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise ValueError(f'{cmap} is not a valid color map; choices are:\n{choices}') from exc' (raise-missing-from)
sciris/sc_colors.py:329:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_colors.py:329:0: R0914: Too many local variables (32/20) (too-many-locals)
sciris/sc_colors.py:416:11: R1714: Consider merging these comparisons with 'in' by using 'basis in ('colorbrewer', 'kelly')'. Use a set instead if elements are hashable. (consider-using-in)
sciris/sc_colors.py:420:25: E0606: Possibly using variable 'basiscolors' before assignment (possibly-used-before-assignment)
sciris/sc_colors.py:329:0: R0912: Too many branches (20/15) (too-many-branches)
sciris/sc_colors.py:429:12: W0612: Unused variable 'pt' (unused-variable)
sciris/sc_colors.py:479:0: R0917: Too many positional arguments (16/5) (too-many-positional-arguments)
sciris/sc_colors.py:480:19: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:481:36: W0613: Unused argument 'fig' (unused-argument)
sciris/sc_colors.py:615:17: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:640:8: W0612: Unused variable 's' (unused-variable)
sciris/sc_colors.py:731:4: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:738:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_colors.py:783:4: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:854:4: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:916:4: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:923:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_colors.py:953:4: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
sciris/sc_colors.py:977:4: W0621: Redefining name 'cmap' from outer scope (line 997) (redefined-outer-name)
************* Module sciris.sc_utils
sciris/sc_utils.py:1:0: C0302: Too many lines in module (2524/2000) (too-many-lines)
sciris/sc_utils.py:67:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_utils.py:166:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_utils.py:211:16: W0707: Consider explicitly re-raising using 'raise TypeError(errormsg) from E' (raise-missing-from)
sciris/sc_utils.py:239:11: E0606: Possibly using variable 'output' before assignment (possibly-used-before-assignment)
sciris/sc_utils.py:166:0: R0912: Too many branches (20/15) (too-many-branches)
sciris/sc_utils.py:219:12: W0612: Unused variable 'i' (unused-variable)
sciris/sc_utils.py:359:16: W0621: Redefining name 'e' from outer scope (line 355) (redefined-outer-name)
sciris/sc_utils.py:294:0: R0912: Too many branches (19/15) (too-many-branches)
sciris/sc_utils.py:375:14: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:375:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_utils.py:427:4: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:468:0: W1113: Keyword argument before variable positional arguments list in the definition of traceback function (keyword-arg-before-vararg)
sciris/sc_utils.py:620:8: C0415: Import outside toplevel (IPython.get_ipython) (import-outside-toplevel)
sciris/sc_utils.py:666:12: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:692:0: R0917: Too many positional arguments (11/5) (too-many-positional-arguments)
sciris/sc_utils.py:692:0: R0914: Too many local variables (23/20) (too-many-locals)
sciris/sc_utils.py:779:8: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:725:4: C0415: Import outside toplevel (urllib.request) (import-outside-toplevel)
sciris/sc_utils.py:726:4: C0415: Import outside toplevel (urllib.parse) (import-outside-toplevel)
sciris/sc_utils.py:692:0: R0912: Too many branches (25/15) (too-many-branches)
sciris/sc_utils.py:749:11: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
sciris/sc_utils.py:807:0: R0914: Too many local variables (22/20) (too-many-locals)
sciris/sc_utils.py:843:11: R1729: Use a generator instead 'any('http' in key for key in keys)' (use-a-generator)
sciris/sc_utils.py:843:56: R1729: Use a generator instead 'any('http' in url for url in urls)' (use-a-generator)
sciris/sc_utils.py:872:16: R1704: Redefining argument with the local name 'url' (redefined-argument-from-local)
sciris/sc_utils.py:887:29: R1721: Unnecessary use of a comprehension, use dict(zip(keys, outputs)) instead. (unnecessary-comprehension)
sciris/sc_utils.py:807:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_utils.py:897:12: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:909:4: C0415: Import outside toplevel (html) (import-outside-toplevel)
sciris/sc_utils.py:950:8: R1704: Redefining argument with the local name 'arg' (redefined-argument-from-local)
sciris/sc_utils.py:975:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_utils.py:975:16: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:975:65: W0621: Redefining name 'asciify' from outer scope (line 666) (redefined-outer-name)
sciris/sc_utils.py:1014:15: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_utils.py:1065:8: R1704: Redefining argument with the local name 'obj' (redefined-argument-from-local)
sciris/sc_utils.py:1135:9: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
sciris/sc_utils.py:1092:0: R0912: Too many branches (21/15) (too-many-branches)
sciris/sc_utils.py:1092:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_utils.py:1215:12: R1703: The if statement can be replaced with 'return bool(test)' (simplifiable-if-statement)
sciris/sc_utils.py:1325:0: R0912: Too many branches (20/15) (too-many-branches)
sciris/sc_utils.py:1448:17: R1728: Consider using a generator instead 'max(len(ls) for ls in obj)' (consider-using-generator)
sciris/sc_utils.py:1451:18: R1721: Unnecessary use of a comprehension, use list(ls) instead. (unnecessary-comprehension)
sciris/sc_utils.py:1480:8: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_utils.py:1524:7: R1729: Use a generator instead 'any(k in kwargs for k in renamed)' (use-a-generator)
sciris/sc_utils.py:1568:40: W0621: Redefining name 'copy' from outer scope (line 26) (redefined-outer-name)
sciris/sc_utils.py:1661:16: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment)
sciris/sc_utils.py:1759:13: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:1834:22: R1719: The if expression can be replaced with 'not test' (simplifiable-if-expression)
sciris/sc_utils.py:1841:12: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
sciris/sc_utils.py:1912:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_utils.py:1912:0: R0914: Too many local variables (22/20) (too-many-locals)
sciris/sc_utils.py:1943:8: C0415: Import outside toplevel (jellyfish) (import-outside-toplevel)
sciris/sc_utils.py:1912:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_utils.py:2024:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_utils.py:2069:8: R1704: Redefining argument with the local name 'variable' (redefined-argument-from-local)
sciris/sc_utils.py:2069:17: R1704: Redefining argument with the local name 'module' (redefined-argument-from-local)
sciris/sc_utils.py:2167:33: E0606: Possibly using variable 'orig_module' before assignment (possibly-used-before-assignment)
sciris/sc_utils.py:2201:4: W0107: Unnecessary pass statement (unnecessary-pass)
sciris/sc_utils.py:2265:15: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
sciris/sc_utils.py:2262:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_utils.py:2389:4: W0231: __init__ method from base class 'suppress' is not called (super-init-not-called)
sciris/sc_utils.py:2389:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_utils.py:2438:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_utils.py:2447:42: W0621: Redefining name 'traceback' from outer scope (line 468) (redefined-outer-name)
sciris/sc_utils.py:2465:73: E0606: Possibly using variable 'exceptstr' before assignment (possibly-used-before-assignment)
sciris/sc_utils.py:2447:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_utils.py:2486:8: W0621: Redefining name 'string' from outer scope (line 28) (redefined-outer-name)
sciris/sc_utils.py:2476:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_utils.py:2516:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_utils.py:2505:8: W0201: Attribute 'df' defined outside __init__ (attribute-defined-outside-init)
************* Module sciris.sc_math
sciris/sc_math.py:305:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_math.py:333:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_math.py:334:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:335:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:336:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:337:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:338:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:339:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:340:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:341:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:342:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:343:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:345:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:346:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:347:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:348:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:349:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:350:0: W0311: Bad indentation. Found 24 spaces, expected 20 (bad-indentation)
sciris/sc_math.py:351:0: W0311: Bad indentation. Found 28 spaces, expected 24 (bad-indentation)
sciris/sc_math.py:352:0: W0311: Bad indentation. Found 28 spaces, expected 24 (bad-indentation)
sciris/sc_math.py:353:0: W0311: Bad indentation. Found 24 spaces, expected 20 (bad-indentation)
sciris/sc_math.py:354:0: W0311: Bad indentation. Found 24 spaces, expected 20 (bad-indentation)
sciris/sc_math.py:355:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:356:0: W0311: Bad indentation. Found 24 spaces, expected 20 (bad-indentation)
sciris/sc_math.py:357:0: W0311: Bad indentation. Found 24 spaces, expected 20 (bad-indentation)
sciris/sc_math.py:358:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:359:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:360:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:361:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:363:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:364:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:365:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:366:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:367:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:369:0: W0311: Bad indentation. Found 20 spaces, expected 16 (bad-indentation)
sciris/sc_math.py:370:0: W0311: Bad indentation. Found 24 spaces, expected 20 (bad-indentation)
sciris/sc_math.py:371:0: W0311: Bad indentation. Found 24 spaces, expected 20 (bad-indentation)
sciris/sc_math.py:372:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_math.py:373:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:374:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:375:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_math.py:376:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:377:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_math.py:378:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_math.py:379:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_math.py:951:0: C0301: Line too long (215/200) (line-too-long)
sciris/sc_math.py:1453:0: C0304: Final newline missing (missing-final-newline)
sciris/sc_math.py:86:0: W1113: Keyword argument before variable positional arguments list in the definition of findinds function (keyword-arg-before-vararg)
sciris/sc_math.py:169:25: R1728: Consider using a generator instead 'tuple(output[i][ind] for i in range(arr.ndim))' (consider-using-generator)
sciris/sc_math.py:86:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_math.py:304:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_math.py:304:0: R0912: Too many branches (20/15) (too-many-branches)
sciris/sc_math.py:437:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_math.py:476:0: R0911: Too many return statements (9/5) (too-many-return-statements)
sciris/sc_math.py:476:0: R0912: Too many branches (18/15) (too-many-branches)
sciris/sc_math.py:548:16: R1719: The if expression can be replaced with 'bool(test)' (simplifiable-if-expression)
sciris/sc_math.py:553:8: R1704: Redefining argument with the local name 'n' (redefined-argument-from-local)
sciris/sc_math.py:802:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_math.py:782:15: W0613: Unused argument 'copy' (unused-argument)
sciris/sc_math.py:851:0: W1113: Keyword argument before variable positional arguments list in the definition of sem function (keyword-arg-before-vararg)
sciris/sc_math.py:851:0: W0613: Unused argument 'args' (unused-argument)
sciris/sc_math.py:851:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_math.py:1064:8: W0612: Unused variable 'r' (unused-variable)
sciris/sc_math.py:1088:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_math.py:1088:0: R0914: Too many local variables (36/20) (too-many-locals)
sciris/sc_math.py:1146:7: C0117: Consider changing "not origx.shape == origy.shape" to "origx.shape != origy.shape" (unnecessary-negation)
sciris/sc_math.py:1088:0: R0912: Too many branches (25/15) (too-many-branches)
sciris/sc_math.py:1329:0: R0917: Too many positional arguments (10/5) (too-many-positional-arguments)
sciris/sc_math.py:1329:0: R0912: Too many branches (16/15) (too-many-branches)
************* Module sciris.sc_fileio
sciris/sc_fileio.py:2639:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_fileio.py:2640:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_fileio.py:2641:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_fileio.py:2642:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_fileio.py:2643:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_fileio.py:1:0: C0302: Too many lines in module (2649/2000) (too-many-lines)
sciris/sc_fileio.py:123:29: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_fileio.py:131:12: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_fileio.py:78:0: R0912: Too many branches (18/15) (too-many-branches)
sciris/sc_fileio.py:135:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_fileio.py:199:0: R0917: Too many positional arguments (10/5) (too-many-positional-arguments)
sciris/sc_fileio.py:199:0: R0914: Too many local variables (23/20) (too-many-locals)
sciris/sc_fileio.py:200:37: W0621: Redefining name 'sanitizepath' from outer scope (line 873) (redefined-outer-name)
sciris/sc_fileio.py:199:0: R0912: Too many branches (18/15) (too-many-branches)
sciris/sc_fileio.py:380:12: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:437:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_fileio.py:444:28: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:471:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_fileio.py:476:40: W0621: Redefining name 'load' from outer scope (line 135) (redefined-outer-name)
sciris/sc_fileio.py:550:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_fileio.py:550:0: R0914: Too many local variables (23/20) (too-many-locals)
sciris/sc_fileio.py:550:63: W0621: Redefining name 'sanitizepath' from outer scope (line 873) (redefined-outer-name)
sciris/sc_fileio.py:615:16: W0621: Redefining name 'thisfile' from outer scope (line 670) (redefined-outer-name)
sciris/sc_fileio.py:616:16: W0621: Redefining name 'thispath' from outer scope (line 738) (redefined-outer-name)
sciris/sc_fileio.py:550:0: R0912: Too many branches (16/15) (too-many-branches)
sciris/sc_fileio.py:692:0: W1113: Keyword argument before variable positional arguments list in the definition of thisdir function (keyword-arg-before-vararg)
sciris/sc_fileio.py:692:23: W0621: Redefining name 'path' from outer scope (line 627) (redefined-outer-name)
sciris/sc_fileio.py:749:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_fileio.py:811:24: W0613: Unused argument 'aspath' (unused-argument)
sciris/sc_fileio.py:822:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_fileio.py:873:24: W0613: Unused argument 'aspath' (unused-argument)
sciris/sc_fileio.py:885:0: R0917: Too many positional arguments (12/5) (too-many-positional-arguments)
sciris/sc_fileio.py:885:0: R0914: Too many local variables (21/20) (too-many-locals)
sciris/sc_fileio.py:885:0: R0912: Too many branches (28/15) (too-many-branches)
sciris/sc_fileio.py:1004:20: W0613: Unused argument 'aspath' (unused-argument)
sciris/sc_fileio.py:1016:0: W1113: Keyword argument before variable positional arguments list in the definition of rmpath function (keyword-arg-before-vararg)
sciris/sc_fileio.py:1016:11: W0621: Redefining name 'path' from outer scope (line 627) (redefined-outer-name)
sciris/sc_fileio.py:1040:8: R1704: Redefining argument with the local name 'path' (redefined-argument-from-local)
sciris/sc_fileio.py:1041:8: R1724: Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it (no-else-continue)
sciris/sc_fileio.py:1075:12: E0606: Possibly using variable 'rm_func' before assignment (possibly-used-before-assignment)
sciris/sc_fileio.py:1016:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_fileio.py:1016:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_fileio.py:1169:19: C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
sciris/sc_fileio.py:1193:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_fileio.py:1267:20: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:1308:30: W0707: Consider explicitly re-raising using 'raise TypeError(errormsg) from E' (raise-missing-from)
sciris/sc_fileio.py:1245:4: R0911: Too many return statements (16/5) (too-many-return-statements)
sciris/sc_fileio.py:1245:4: R0912: Too many branches (23/15) (too-many-branches)
sciris/sc_fileio.py:1343:4: W0621: Redefining name 'json' from outer scope (line 21) (redefined-outer-name)
sciris/sc_fileio.py:1348:13: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:1371:41: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:1400:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_fileio.py:1408:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_fileio.py:1408:87: W0621: Redefining name 'sanitizepath' from outer scope (line 873) (redefined-outer-name)
sciris/sc_fileio.py:1439:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_fileio.py:1445:13: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:1468:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_fileio.py:1468:41: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:1488:4: C0415: Import outside toplevel (yaml) (import-outside-toplevel)
sciris/sc_fileio.py:1502:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_fileio.py:1516:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_fileio.py:1516:51: W0621: Redefining name 'jsonify' from outer scope (line 1193) (redefined-outer-name)
sciris/sc_fileio.py:1517:54: W0621: Redefining name 'sanitizepath' from outer scope (line 873) (redefined-outer-name)
sciris/sc_fileio.py:1544:4: C0415: Import outside toplevel (yaml) (import-outside-toplevel)
sciris/sc_fileio.py:1563:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_fileio.py:1608:4: C0415: Import outside toplevel (jsonpickle) (import-outside-toplevel)
sciris/sc_fileio.py:1609:4: C0415: Import outside toplevel (jsonpickle.ext.numpy) (import-outside-toplevel)
sciris/sc_fileio.py:1610:4: C0415: Import outside toplevel (jsonpickle.ext.pandas) (import-outside-toplevel)
sciris/sc_fileio.py:1628:17: W0621: Redefining name 'json' from outer scope (line 21) (redefined-outer-name)
sciris/sc_fileio.py:1640:4: C0415: Import outside toplevel (jsonpickle) (import-outside-toplevel)
sciris/sc_fileio.py:1641:4: C0415: Import outside toplevel (jsonpickle.ext.numpy) (import-outside-toplevel)
sciris/sc_fileio.py:1642:4: C0415: Import outside toplevel (jsonpickle.ext.pandas) (import-outside-toplevel)
sciris/sc_fileio.py:1770:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_fileio.py:1827:8: C0415: Import outside toplevel (openpyxl) (import-outside-toplevel)
sciris/sc_fileio.py:1836:16: C0415: Import outside toplevel (xlrd) (import-outside-toplevel)
sciris/sc_fileio.py:1851:12: C0415: Import outside toplevel (openpyxl) (import-outside-toplevel)
sciris/sc_fileio.py:1867:8: W0621: Redefining name 'warnmsg' from outer scope (line 2310) (redefined-outer-name)
sciris/sc_fileio.py:1915:4: R0914: Too many local variables (22/20) (too-many-locals)
sciris/sc_fileio.py:1915:4: W1113: Keyword argument before variable positional arguments list in the definition of readcells function (keyword-arg-before-vararg)
sciris/sc_fileio.py:1939:22: W0612: Unused variable 'val' (unused-variable)
sciris/sc_fileio.py:1958:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_fileio.py:1958:4: R0914: Too many local variables (23/20) (too-many-locals)
sciris/sc_fileio.py:2005:20: W0707: Consider explicitly re-raising using 'raise RuntimeError(errormsg) from E' (raise-missing-from)
sciris/sc_fileio.py:2020:24: W0707: Consider explicitly re-raising using 'raise RuntimeError(errormsg) from E' (raise-missing-from)
sciris/sc_fileio.py:1958:4: R0912: Too many branches (20/15) (too-many-branches)
sciris/sc_fileio.py:2035:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_fileio.py:2035:0: R0914: Too many local variables (28/20) (too-many-locals)
sciris/sc_fileio.py:2081:12: C0415: Import outside toplevel (xlrd) (import-outside-toplevel)
sciris/sc_fileio.py:2081:12: E0401: Unable to import 'xlrd' (import-error)
sciris/sc_fileio.py:2035:0: R0912: Too many branches (25/15) (too-many-branches)
sciris/sc_fileio.py:2063:8: W0612: Unused variable 'key' (unused-variable)
sciris/sc_fileio.py:2153:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_fileio.py:2153:0: R0914: Too many local variables (31/20) (too-many-locals)
sciris/sc_fileio.py:2215:8: C0415: Import outside toplevel (xlsxwriter) (import-outside-toplevel)
sciris/sc_fileio.py:2269:4: C0206: Consider iterating with .items() (consider-using-dict-items)
sciris/sc_fileio.py:2283:53: E0606: Possibly using variable 'thisformat' before assignment (possibly-used-before-assignment)
sciris/sc_fileio.py:2286:20: W0707: Consider explicitly re-raising using 'raise RuntimeError(errormsg) from E' (raise-missing-from)
sciris/sc_fileio.py:2153:0: R0912: Too many branches (37/15) (too-many-branches)
sciris/sc_fileio.py:2309:0: W0711: Exception to catch is the result of a binary "or" operation (binary-op-exception)
sciris/sc_fileio.py:2308:18: W0212: Access to a protected member _class_locations_map of a client class (protected-access)
sciris/sc_fileio.py:2327:4: W0107: Unnecessary pass statement (unnecessary-pass)
sciris/sc_fileio.py:2336:4: W0107: Unnecessary pass statement (unnecessary-pass)
sciris/sc_fileio.py:2339:0: R0903: Too few public methods (0/2) (too-few-public-methods)
sciris/sc_fileio.py:2399:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_fileio.py:2407:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_fileio.py:2407:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_fileio.py:2425:31: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_fileio.py:2425:54: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_fileio.py:2383:12: W0201: Attribute 'state' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_fileio.py:2522:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_fileio.py:2532:4: W0237: Parameter 'module' has been renamed to 'module_name' in overriding '_RobustUnpickler.find_class' method (arguments-renamed)
sciris/sc_fileio.py:2548:20: W0621: Redefining name 'warnmsg' from outer scope (line 2310) (redefined-outer-name)
sciris/sc_fileio.py:2549:33: W0707: Consider explicitly re-raising using 'raise UnpicklingError(warnmsg) from E2' (raise-missing-from)
sciris/sc_fileio.py:2561:16: W0621: Redefining name 'warnmsg' from outer scope (line 2310) (redefined-outer-name)
sciris/sc_fileio.py:2568:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_fileio.py:2568:15: W0621: Redefining name 'string' from outer scope (line 25) (redefined-outer-name)
sciris/sc_fileio.py:2625:12: W0621: Redefining name 'warnmsg' from outer scope (line 2310) (redefined-outer-name)
sciris/sc_fileio.py:2568:0: R0912: Too many branches (19/15) (too-many-branches)
************* Module sciris.sc_nested
sciris/sc_nested.py:664:0: C0301: Line too long (212/200) (line-too-long)
sciris/sc_nested.py:1319:0: C0301: Line too long (243/200) (line-too-long)
sciris/sc_nested.py:1321:0: C0301: Line too long (259/200) (line-too-long)
sciris/sc_nested.py:40:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_nested.py:110:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_nested.py:114:8: W0612: Unused variable 'i' (unused-variable)
sciris/sc_nested.py:139:27: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment)
sciris/sc_nested.py:174:8: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_nested.py:228:8: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_nested.py:309:0: R0902: Too many instance attributes (25/20) (too-many-instance-attributes)
sciris/sc_nested.py:368:4: R0917: Too many positional arguments (17/5) (too-many-positional-arguments)
sciris/sc_nested.py:368:4: R0914: Too many local variables (27/20) (too-many-locals)
sciris/sc_nested.py:368:4: W1113: Keyword argument before variable positional arguments list in the definition of __init__ function (keyword-arg-before-vararg)
sciris/sc_nested.py:501:12: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_nested.py:564:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_nested.py:625:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_nested.py:635:8: W0201: Attribute 'df' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_nested.py:639:0: R0917: Too many positional arguments (13/5) (too-many-positional-arguments)
sciris/sc_nested.py:639:0: W1113: Keyword argument before variable positional arguments list in the definition of iterobj function (keyword-arg-before-vararg)
sciris/sc_nested.py:839:8: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_nested.py:852:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_nested.py:852:53: W0622: Redefining built-in 'type' (redefined-builtin)
sciris/sc_nested.py:934:16: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment)
sciris/sc_nested.py:934:31: W1116: Second argument of isinstance is not a type (isinstance-second-argument-not-valid-type)
sciris/sc_nested.py:966:0: C0115: Missing class docstring (missing-class-docstring)
sciris/sc_nested.py:973:4: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_nested.py:1033:32: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_nested.py:1154:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_nested.py:1161:4: R0914: Too many local variables (22/20) (too-many-locals)
sciris/sc_nested.py:1177:8: R1702: Too many nested blocks (6/5) (too-many-nested-blocks)
sciris/sc_nested.py:1250:18: R1729: Use a generator instead 'all(v for v in self.results.values() if v is not None)' (use-a-generator)
sciris/sc_nested.py:1161:4: R0912: Too many branches (19/15) (too-many-branches)
sciris/sc_nested.py:1278:8: W0621: Redefining name 'equal' from outer scope (line 1286) (redefined-outer-name)
sciris/sc_nested.py:1287:10: W0613: Unused argument 'union' (unused-argument)
************* Module sciris.sc_odict
sciris/sc_odict.py:309:0: C0301: Line too long (255/200) (line-too-long)
sciris/sc_odict.py:434:0: C0301: Line too long (229/200) (line-too-long)
sciris/sc_odict.py:1421:0: C0304: Final newline missing (missing-final-newline)
sciris/sc_odict.py:331:39: W0511: TODO: remove duplication with above (fixme)
sciris/sc_odict.py:25:0: W0223: Method 'fromkeys' is abstract in class 'Counter' but is not overridden in child class 'counter' (abstract-method)
sciris/sc_odict.py:45:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_odict.py:172:15: R1701: Consider merging these isinstance calls to isinstance(key, (sc._stringtypes, tuple)) (consider-merging-isinstance)
sciris/sc_odict.py:180:43: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment)
sciris/sc_odict.py:187:27: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_odict.py:203:16: W0621: Redefining name 'E' from outer scope (line 170) (redefined-outer-name)
sciris/sc_odict.py:163:4: R0911: Too many return statements (6/5) (too-many-return-statements)
sciris/sc_odict.py:163:4: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_odict.py:267:4: R0917: Too many positional arguments (16/5) (too-many-positional-arguments)
sciris/sc_odict.py:267:4: R0914: Too many local variables (47/20) (too-many-locals)
sciris/sc_odict.py:330:24: R1728: Consider using a generator instead 'max(len(keystr) for keystr in keystrs)' (consider-using-generator)
sciris/sc_odict.py:267:4: R0912: Too many branches (29/15) (too-many-branches)
sciris/sc_odict.py:388:14: C2801: Unnecessarily calls dunder method __repr__. Use repr built-in function. (unnecessary-dunder-call)
sciris/sc_odict.py:386:28: W0613: Unused argument 'p' (unused-argument)
sciris/sc_odict.py:386:31: W0613: Unused argument 'cycle' (unused-argument)
sciris/sc_odict.py:424:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_odict.py:435:14: C2801: Unnecessarily calls dunder method __repr__. Use repr built-in function. (unnecessary-dunder-call)
sciris/sc_odict.py:424:111: W0613: Unused argument 'numformat' (unused-argument)
sciris/sc_odict.py:484:20: W0707: Consider explicitly re-raising using 'raise TypeError(E) from E' (raise-missing-from)
sciris/sc_odict.py:512:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_odict.py:537:27: W0212: Access to a protected member _stringtypes of a client class (protected-access)
sciris/sc_odict.py:539:29: W0212: Access to a protected member _numtype of a client class (protected-access)
sciris/sc_odict.py:553:59: W0212: Access to a protected member _numtype of a client class (protected-access)
sciris/sc_odict.py:564:19: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_odict.py:566:16: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise sc.KeyNotFoundError(errormsg) from exc' (raise-missing-from)
sciris/sc_odict.py:534:4: R0911: Too many return statements (6/5) (too-many-return-statements)
sciris/sc_odict.py:607:15: C2801: Unnecessarily calls dunder method __getitem__. Access item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:659:32: C2801: Unnecessarily calls dunder method __getitem__. Access item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:663:36: C2801: Unnecessarily calls dunder method __getitem__. Access item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:683:8: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:720:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_odict.py:721:12: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:730:16: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:731:12: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:733:16: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:773:30: W0212: Access to a protected member _numtype of a client class (protected-access)
sciris/sc_odict.py:779:8: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:784:16: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:781:16: W0612: Unused variable 'i' (unused-variable)
sciris/sc_odict.py:818:16: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_odict.py:820:15: R1729: Use a generator instead 'all(isinstance(x, sc._stringtypes) for x in sortby)' (use-a-generator)
sciris/sc_odict.py:820:34: W0212: Access to a protected member _stringtypes of a client class (protected-access)
sciris/sc_odict.py:822:17: R1729: Use a generator instead 'all(isinstance(x, bool) for x in sortby)' (use-a-generator)
sciris/sc_odict.py:824:17: R1729: Use a generator instead 'all(isinstance(x, sc._numtype) for x in sortby)' (use-a-generator)
sciris/sc_odict.py:824:36: W0212: Access to a protected member _numtype of a client class (protected-access)
sciris/sc_odict.py:837:32: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:838:32: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:788:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_odict.py:860:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_odict.py:890:28: W0212: Access to a protected member _numtype of a client class (protected-access)
sciris/sc_odict.py:891:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/sc_odict.py:892:30: W0212: Access to a protected member _stringtypes of a client class (protected-access)
sciris/sc_odict.py:921:16: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:927:4: W1113: Keyword argument before variable positional arguments list in the definition of makefrom function (keyword-arg-before-vararg)
sciris/sc_odict.py:959:36: W0212: Access to a protected member _stringtypes of a client class (protected-access)
sciris/sc_odict.py:981:28: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:927:0: W0613: Unused argument 'args' (unused-argument)
sciris/sc_odict.py:927:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_odict.py:1002:31: C2801: Unnecessarily calls dunder method __getitem__. Access item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:1020:26: C2801: Unnecessarily calls dunder method __getitem__. Access item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:1043:12: C2801: Unnecessarily calls dunder method __getitem__. Access item via subscript. (unnecessary-dunder-call)
sciris/sc_odict.py:1106:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/sc_odict.py:63:0: R0904: Too many public methods (42/20) (too-many-public-methods)
sciris/sc_odict.py:1216:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_odict.py:1247:20: W0707: Consider explicitly re-raising using 'raise exception from E2' (raise-missing-from)
sciris/sc_odict.py:1397:20: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise E from exc' (raise-missing-from)
sciris/sc_odict.py:1414:19: C2801: Unnecessarily calls dunder method __getattribute__. Access attribute directly or use getattr built-in function. (unnecessary-dunder-call)
sciris/sc_odict.py:1418:19: C2801: Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. (unnecessary-dunder-call)
************* Module sciris.sc_parallel
sciris/sc_parallel.py:759:0: C0301: Line too long (211/200) (line-too-long)
sciris/sc_parallel.py:783:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_parallel.py:788:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_parallel.py:791:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:792:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:793:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:794:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:795:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:796:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:797:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:798:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:799:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:800:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:801:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:802:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:803:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:804:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:805:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:806:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:807:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_parallel.py:52:15: R1728: Consider using a generator instead 'sum(globaldict[k] for k in globaldict.keys() if str(k).startswith('_job'))' (consider-using-generator)
sciris/sc_parallel.py:60:0: R0902: Too many instance attributes (36/20) (too-many-instance-attributes)
sciris/sc_parallel.py:104:4: R0917: Too many positional arguments (19/5) (too-many-positional-arguments)
sciris/sc_parallel.py:223:20: W0707: Consider explicitly re-raising using 'raise TypeError(errormsg) from E' (raise-missing-from)
sciris/sc_parallel.py:204:4: R0912: Too many branches (16/15) (too-many-branches)
sciris/sc_parallel.py:230:20: W0612: Unused variable 'key' (unused-variable)
sciris/sc_parallel.py:306:16: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise sc.KeyNotFoundError(errormsg) from exc' (raise-missing-from)
sciris/sc_parallel.py:342:23: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment)
sciris/sc_parallel.py:349:19: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
sciris/sc_parallel.py:412:20: R1719: The if expression can be replaced with 'test' (simplifiable-if-expression)
sciris/sc_parallel.py:481:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_parallel.py:485:12: R1703: The if statement can be replaced with 'var = bool(test)' (simplifiable-if-statement)
sciris/sc_parallel.py:493:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_parallel.py:500:16: R1703: The if statement can be replaced with 'var = bool(test)' (simplifiable-if-statement)
sciris/sc_parallel.py:508:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_parallel.py:517:0: W0613: Unused argument 'args' (unused-argument)
sciris/sc_parallel.py:517:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_parallel.py:559:30: R1734: Consider using [] instead of list() (use-list-literal)
sciris/sc_parallel.py:560:30: R1734: Consider using [] instead of list() (use-list-literal)
sciris/sc_parallel.py:561:30: R1734: Consider using [] instead of list() (use-list-literal)
sciris/sc_parallel.py:562:30: R1734: Consider using [] instead of list() (use-list-literal)
sciris/sc_parallel.py:563:30: R1734: Consider using [] instead of list() (use-list-literal)
sciris/sc_parallel.py:145:8: W0201: Attribute 'ncpus' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:285:8: W0201: Attribute 'ncpus' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:146:8: W0201: Attribute 'njobs' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:257:12: W0201: Attribute 'njobs' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:147:8: W0201: Attribute 'embarrassing' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:220:20: W0201: Attribute 'embarrassing' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:148:8: W0201: Attribute 'argslist' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:441:8: W0201: Attribute 'argslist' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:149:8: W0201: Attribute 'method' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:303:16: W0201: Attribute 'method' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:308:12: W0201: Attribute 'method' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:150:8: W0201: Attribute 'pool' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:387:8: W0201: Attribute 'pool' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:151:8: W0201: Attribute 'manager' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:388:8: W0201: Attribute 'manager' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:152:8: W0201: Attribute 'globaldict' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:389:8: W0201: Attribute 'globaldict' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:153:8: W0201: Attribute 'map_func' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:390:8: W0201: Attribute 'map_func' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:154:8: W0201: Attribute 'is_async' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:319:8: W0201: Attribute 'is_async' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:391:8: W0201: Attribute 'is_async' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:155:8: W0201: Attribute 'jobs' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:392:8: W0201: Attribute 'jobs' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:470:12: W0201: Attribute 'jobs' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:156:8: W0201: Attribute 'results' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:394:8: W0201: Attribute 'results' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:559:12: W0201: Attribute 'results' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:157:8: W0201: Attribute 'success' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:560:12: W0201: Attribute 'success' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:158:8: W0201: Attribute 'exceptions' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:561:12: W0201: Attribute 'exceptions' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:159:8: W0201: Attribute 'stdout' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:562:12: W0201: Attribute 'stdout' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:160:8: W0201: Attribute 'times' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:161:8: W0201: Attribute '_running' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:162:8: W0201: Attribute 'already_run' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:475:8: W0201: Attribute 'already_run' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:180:8: W0201: Attribute 'defaults' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:268:12: W0201: Attribute 'maxcpu' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:393:8: W0201: Attribute 'rawresults' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:472:12: W0201: Attribute 'rawresults' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:537:12: W0201: Attribute 'rawresults' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_parallel.py:597:0: R0917: Too many positional arguments (17/5) (too-many-positional-arguments)
sciris/sc_parallel.py:788:8: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_parallel.py:788:8: R0917: Too many positional arguments (17/5) (too-many-positional-arguments)
sciris/sc_parallel.py:782:0: R0903: Too few public methods (0/2) (too-few-public-methods)
sciris/sc_parallel.py:810:0: R0914: Too many local variables (21/20) (too-many-locals)
sciris/sc_parallel.py:810:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_parallel.py:941:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_parallel.py:941:0: R0914: Too many local variables (28/20) (too-many-locals)
sciris/sc_parallel.py:941:0: R0912: Too many branches (20/15) (too-many-branches)
sciris/sc_parallel.py:941:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
************* Module sciris.sc_dataframe
sciris/sc_dataframe.py:99:0: C0301: Line too long (207/200) (line-too-long)
sciris/sc_dataframe.py:72:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:107:15: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_dataframe.py:139:21: R1721: Unnecessary use of a comprehension, use dict(zip(self.columns, dtypes)) instead. (unnecessary-comprehension)
sciris/sc_dataframe.py:145:4: W1113: Keyword argument before variable positional arguments list in the definition of col_index function (keyword-arg-before-vararg)
sciris/sc_dataframe.py:168:12: R1704: Redefining argument with the local name 'col' (redefined-argument-from-local)
sciris/sc_dataframe.py:193:4: W1113: Keyword argument before variable positional arguments list in the definition of col_name function (keyword-arg-before-vararg)
sciris/sc_dataframe.py:220:12: R1704: Redefining argument with the local name 'col' (redefined-argument-from-local)
sciris/sc_dataframe.py:238:30: E0606: Possibly using variable 'output' before assignment (possibly-used-before-assignment)
sciris/sc_dataframe.py:244:4: W0221: Number of parameters was 3 in 'NDFrame.get' and is now 2 in overriding 'dataframe.get' method (arguments-differ)
sciris/sc_dataframe.py:244:4: W0239: Method 'get' overrides a method decorated with typing.final which is defined in class 'NDFrame' (overridden-final-method)
sciris/sc_dataframe.py:268:24: W0707: Consider explicitly re-raising using 'except ValueError as exc' and 'raise sc.KeyNotFoundError(errormsg) from exc' (raise-missing-from)
sciris/sc_dataframe.py:282:24: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise sc.KeyNotFoundError(errormsg) from exc' (raise-missing-from)
sciris/sc_dataframe.py:294:92: R1729: Use a generator instead 'all(isinstance(k, (int, str, Ellipsis)) for k in key)' (use-a-generator)
sciris/sc_dataframe.py:294:97: W1116: Second argument of isinstance is not a type (isinstance-second-argument-not-valid-type)
sciris/sc_dataframe.py:316:16: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_dataframe.py:320:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:320:59: W0613: Unused argument 'cast' (unused-argument)
sciris/sc_dataframe.py:320:70: W0613: Unused argument 'default' (unused-argument)
sciris/sc_dataframe.py:399:31: W0212: Access to a protected member _nan_fill of a client class (protected-access)
sciris/sc_dataframe.py:418:41: W0212: Access to a protected member _nan_fill of a client class (protected-access)
sciris/sc_dataframe.py:428:4: W0239: Method 'equals' overrides a method decorated with typing.final which is defined in class 'NDFrame' (overridden-final-method)
sciris/sc_dataframe.py:444:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:508:16: E1123: Unexpected keyword argument 'verify_is_copy' in method call (unexpected-keyword-arg)
sciris/sc_dataframe.py:565:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:698:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_dataframe.py:773:16: C2801: Unnecessarily calls dunder method __setitem__. Set item via subscript. (unnecessary-dunder-call)
sciris/sc_dataframe.py:736:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_dataframe.py:779:4: W1113: Keyword argument before variable positional arguments list in the definition of popcols function (keyword-arg-before-vararg)
sciris/sc_dataframe.py:797:12: R1704: Redefining argument with the local name 'col' (redefined-argument-from-local)
sciris/sc_dataframe.py:800:24: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_dataframe.py:844:20: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise IndexError(errormsg) from exc' (raise-missing-from)
sciris/sc_dataframe.py:807:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_dataframe.py:890:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:920:34: W0622: Redefining built-in 'type' (redefined-builtin)
sciris/sc_dataframe.py:963:27: R1721: Unnecessary use of a comprehension, use dict(zip(cols, row)) instead. (unnecessary-comprehension)
sciris/sc_dataframe.py:995:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:1049:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:1059:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:1066:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:1073:4: W1113: Keyword argument before variable positional arguments list in the definition of filtercols function (keyword-arg-before-vararg)
sciris/sc_dataframe.py:1100:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_dataframe.py:1101:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/sc_dataframe.py:1102:20: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_dataframe.py:1112:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_dataframe.py:1147:61: W0613: Unused argument 'inplace' (unused-argument)
sciris/sc_dataframe.py:1176:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_dataframe.py:23:0: R0904: Too many public methods (38/20) (too-many-public-methods)
************* Module sciris.sc_plotting
sciris/sc_plotting.py:1113:0: W0311: Bad indentation. Found 14 spaces, expected 12 (bad-indentation)
sciris/sc_plotting.py:1114:0: W0311: Bad indentation. Found 14 spaces, expected 12 (bad-indentation)
sciris/sc_plotting.py:1117:0: C0301: Line too long (218/200) (line-too-long)
sciris/sc_plotting.py:1405:0: C0301: Line too long (211/200) (line-too-long)
sciris/sc_plotting.py:1537:0: C0301: Line too long (203/200) (line-too-long)
sciris/sc_plotting.py:2223:0: C0304: Final newline missing (missing-final-newline)
sciris/sc_plotting.py:1:0: C0302: Too many lines in module (2223/2000) (too-many-lines)
sciris/sc_plotting.py:36:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_plotting.py:53:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_plotting.py:75:4: C0415: Import outside toplevel (mpl_toolkits.mplot3d.Axes3D) (import-outside-toplevel)
sciris/sc_plotting.py:108:9: C0121: Comparison 'fig == False' should be 'fig is False' if checking for the singleton value False, or 'not fig' if testing for falsiness (singleton-comparison)
sciris/sc_plotting.py:53:0: R0912: Too many branches (22/15) (too-many-branches)
sciris/sc_plotting.py:159:9: C0121: Comparison 'flatten == False' should be 'flatten is False' if checking for the singleton value False, or 'not flatten' if testing for falsiness (singleton-comparison)
sciris/sc_plotting.py:178:4: C0415: Import outside toplevel (.sc_colors) (import-outside-toplevel)
sciris/sc_plotting.py:196:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_plotting.py:261:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_plotting.py:314:0: R0917: Too many positional arguments (10/5) (too-many-positional-arguments)
sciris/sc_plotting.py:359:19: R1719: The if expression can be replaced with 'not test' (simplifiable-if-expression)
sciris/sc_plotting.py:384:0: R0917: Too many positional arguments (12/5) (too-many-positional-arguments)
sciris/sc_plotting.py:467:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_plotting.py:467:0: R0914: Too many local variables (22/20) (too-many-locals)
sciris/sc_plotting.py:491:4: C0415: Import outside toplevel (.sc_colors) (import-outside-toplevel)
sciris/sc_plotting.py:467:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_plotting.py:654:30: E0606: Possibly using variable 'currlower' before assignment (possibly-used-before-assignment)
sciris/sc_plotting.py:655:29: E0606: Possibly using variable 'currupper' before assignment (possibly-used-before-assignment)
sciris/sc_plotting.py:609:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_plotting.py:738:8: R1704: Redefining argument with the local name 'ax' (redefined-argument-from-local)
sciris/sc_plotting.py:739:12: R1704: Redefining argument with the local name 'axis' (redefined-argument-from-local)
sciris/sc_plotting.py:763:4: W1113: Keyword argument before variable positional arguments list in the definition of SItickformatter function (keyword-arg-before-vararg)
sciris/sc_plotting.py:763:27: W0613: Unused argument 'pos' (unused-argument)
sciris/sc_plotting.py:763:0: W0613: Unused argument 'args' (unused-argument)
sciris/sc_plotting.py:763:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_plotting.py:770:8: R1704: Redefining argument with the local name 'ax' (redefined-argument-from-local)
sciris/sc_plotting.py:771:12: R1704: Redefining argument with the local name 'axis' (redefined-argument-from-local)
sciris/sc_plotting.py:749:31: W0613: Unused argument 'fixed' (unused-argument)
sciris/sc_plotting.py:780:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_plotting.py:834:8: W0212: Access to a protected member _subplots_shape of a client class (protected-access)
sciris/sc_plotting.py:835:8: W0212: Access to a protected member _n_subplots of a client class (protected-access)
sciris/sc_plotting.py:837:12: W0212: Access to a protected member _n_subplots of a client class (protected-access)
sciris/sc_plotting.py:875:15: R1719: The if expression can be replaced with 'not test' (simplifiable-if-expression)
sciris/sc_plotting.py:930:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_plotting.py:930:0: R0914: Too many local variables (24/20) (too-many-locals)
sciris/sc_plotting.py:1024:20: W0212: Access to a protected member _load_fontmanager of a client class (protected-access)
sciris/sc_plotting.py:1029:20: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_plotting.py:1039:16: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_plotting.py:930:0: R0912: Too many branches (27/15) (too-many-branches)
sciris/sc_plotting.py:930:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_plotting.py:1071:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_plotting.py:1145:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_plotting.py:1145:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_plotting.py:1249:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_plotting.py:1299:21: W0613: Unused argument 'pos' (unused-argument)
sciris/sc_plotting.py:1340:0: R0917: Too many positional arguments (10/5) (too-many-positional-arguments)
sciris/sc_plotting.py:1399:19: W0212: Access to a protected member _metadataflag of a client class (protected-access)
sciris/sc_plotting.py:1423:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_plotting.py:1423:0: R0914: Too many local variables (21/20) (too-many-locals)
sciris/sc_plotting.py:1464:8: C0415: Import outside toplevel (matplotlib.backends.backend_pdf.PdfPages) (import-outside-toplevel)
sciris/sc_plotting.py:1423:0: R0912: Too many branches (18/15) (too-many-branches)
sciris/sc_plotting.py:1423:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_plotting.py:1470:8: W0612: Unused variable 'p' (unused-variable)
sciris/sc_plotting.py:1537:8: C0415: Import outside toplevel (matplotlib.backends.backend_agg.new_figure_manager_given_figure) (import-outside-toplevel)
sciris/sc_plotting.py:1537:8: E0611: No name 'new_figure_manager_given_figure' in module 'matplotlib.backends.backend_agg' (no-name-in-module)
sciris/sc_plotting.py:1583:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_plotting.py:1607:8: W0212: Access to a protected member _parent_figure of a client class (protected-access)
sciris/sc_plotting.py:1662:30: W0613: Unused argument 'invisible' (unused-argument)
sciris/sc_plotting.py:1837:4: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_plotting.py:1837:4: R0917: Too many positional arguments (14/5) (too-many-positional-arguments)
sciris/sc_plotting.py:1914:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_plotting.py:1918:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_plotting.py:1926:4: W1113: Keyword argument before variable positional arguments list in the definition of addframe function (keyword-arg-before-vararg)
sciris/sc_plotting.py:1926:0: W0613: Unused argument 'args' (unused-argument)
sciris/sc_plotting.py:1926:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_plotting.py:2011:4: R0917: Too many positional arguments (10/5) (too-many-positional-arguments)
sciris/sc_plotting.py:2011:4: R0914: Too many local variables (22/20) (too-many-locals)
sciris/sc_plotting.py:2018:16: C0415: Import outside toplevel (ffmpeg) (import-outside-toplevel)
sciris/sc_plotting.py:2018:16: E0401: Unable to import 'ffmpeg' (import-error)
sciris/sc_plotting.py:2052:12: C0415: Import outside toplevel (matplotlib.animation) (import-outside-toplevel)
sciris/sc_plotting.py:2063:12: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_plotting.py:2073:27: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment)
sciris/sc_plotting.py:2011:4: R0912: Too many branches (22/15) (too-many-branches)
sciris/sc_plotting.py:2098:0: R0917: Too many positional arguments (12/5) (too-many-positional-arguments)
sciris/sc_plotting.py:2160:4: C0415: Import outside toplevel (matplotlib.animation) (import-outside-toplevel)
sciris/sc_plotting.py:2165:4: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_plotting.py:2098:0: R0912: Too many branches (24/15) (too-many-branches)
************* Module sciris.sc_profiling
sciris/sc_profiling.py:36:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_profiling.py:36:0: R0914: Too many local variables (29/20) (too-many-locals)
sciris/sc_profiling.py:36:0: R0912: Too many branches (18/15) (too-many-branches)
sciris/sc_profiling.py:203:8: W0707: Consider explicitly re-raising using 'except KeyError as exc' and 'raise sc.KeyNotFoundError(f'Unit {unit} not found among {sc.strjoin(mapping.keys())}') from exc' (raise-missing-from)
sciris/sc_profiling.py:212:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_profiling.py:212:0: R0914: Too many local variables (28/20) (too-many-locals)
sciris/sc_profiling.py:255:13: R1719: The if expression can be replaced with 'test' (simplifiable-if-expression)
sciris/sc_profiling.py:256:13: R1719: The if expression can be replaced with 'test' (simplifiable-if-expression)
sciris/sc_profiling.py:274:16: R1734: Consider using [] instead of list() (use-list-literal)
sciris/sc_profiling.py:273:12: W0612: Unused variable 'r' (unused-variable)
sciris/sc_profiling.py:295:16: W0104: Statement seems to have no effect (pointless-statement)
sciris/sc_profiling.py:296:16: W0104: Statement seems to have no effect (pointless-statement)
sciris/sc_profiling.py:290:12: W0612: Unused variable 'r' (unused-variable)
sciris/sc_profiling.py:292:16: W0612: Unused variable 'i' (unused-variable)
sciris/sc_profiling.py:412:4: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_profiling.py:412:4: R0917: Too many positional arguments (10/5) (too-many-positional-arguments)
sciris/sc_profiling.py:412:4: W1113: Keyword argument before variable positional arguments list in the definition of __init__ function (keyword-arg-before-vararg)
sciris/sc_profiling.py:460:12: C0415: Import outside toplevel (line_profiler.LineProfiler) (import-outside-toplevel)
sciris/sc_profiling.py:521:12: W0642: Invalid assignment to self in method (self-cls-assignment)
sciris/sc_profiling.py:542:16: R1724: Unnecessary "elif" after "continue", remove the leading "el" from "elif" (no-else-continue)
sciris/sc_profiling.py:566:8: C0415: Import outside toplevel (ast) (import-outside-toplevel)
sciris/sc_profiling.py:569:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_profiling.py:576:12: C0115: Missing class docstring (missing-class-docstring)
sciris/sc_profiling.py:577:16: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_profiling.py:582:16: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_profiling.py:627:12: W0621: Redefining name 'time' from outer scope (line 14) (redefined-outer-name)
sciris/sc_profiling.py:707:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_profiling.py:535:8: W0201: Attribute 'output' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:620:8: W0201: Attribute 'output' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:660:8: W0201: Attribute 'run_func_name' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:715:8: W0201: Attribute 'df' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:770:0: W1113: Keyword argument before variable positional arguments list in the definition of mprofile function (keyword-arg-before-vararg)
sciris/sc_profiling.py:786:8: C0415: Import outside toplevel (memory_profiler) (import-outside-toplevel)
sciris/sc_profiling.py:890:4: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_profiling.py:890:4: R0917: Too many positional arguments (10/5) (too-many-positional-arguments)
sciris/sc_profiling.py:917:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_profiling.py:917:4: R0914: Too many local variables (24/20) (too-many-locals)
sciris/sc_profiling.py:913:12: W0201: Attribute 'n_functions' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:914:12: W0201: Attribute 'total' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:1132:4: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_profiling.py:1132:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_profiling.py:1160:19: C0121: Comparison 'self.verbose != False' should be 'self.verbose is not False' if checking for the singleton value False, or 'bool(self.verbose)' if testing for truthiness (singleton-comparison)
sciris/sc_profiling.py:1161:26: R1718: Consider using a set comprehension (consider-using-set-comprehension)
sciris/sc_profiling.py:1180:34: W0613: Unused argument 'arg' (unused-argument)
sciris/sc_profiling.py:1258:29: R1728: Consider using a generator instead 'max(len(label) for label in ddf.label.values)' (consider-using-generator)
sciris/sc_profiling.py:1302:16: R1724: Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it (no-else-continue)
sciris/sc_profiling.py:1161:8: W0201: Attribute 'func_names' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:1269:8: W0201: Attribute 'df' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:1275:12: W0201: Attribute 'df_counts' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:1322:8: W0201: Attribute 'expected' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_profiling.py:1343:4: W0107: Unnecessary pass statement (unnecessary-pass)
sciris/sc_profiling.py:1377:4: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_profiling.py:1377:4: R0917: Too many positional arguments (12/5) (too-many-positional-arguments)
sciris/sc_profiling.py:1377:42: W0621: Redefining name 'time' from outer scope (line 14) (redefined-outer-name)
sciris/sc_profiling.py:1411:20: W0613: Unused argument 'signum' (unused-argument)
sciris/sc_profiling.py:1411:28: W0613: Unused argument 'frame' (unused-argument)
sciris/sc_profiling.py:1403:20: W0613: Unused argument 'label' (unused-argument)
sciris/sc_profiling.py:1461:4: W1113: Keyword argument before variable positional arguments list in the definition of monitor function (keyword-arg-before-vararg)
sciris/sc_profiling.py:1461:22: W0613: Unused argument 'label' (unused-argument)
sciris/sc_profiling.py:1461:0: W0613: Unused argument 'args' (unused-argument)
sciris/sc_profiling.py:1461:0: W0613: Unused argument 'kwargs' (unused-argument)
sciris/sc_profiling.py:1505:8: C0206: Consider iterating with .items() (consider-using-dict-items)
sciris/sc_profiling.py:1570:8: W0201: Attribute 'df' defined outside __init__ (attribute-defined-outside-init)
************* Module sciris.sc_settings
sciris/sc_settings.py:272:0: C0301: Line too long (234/200) (line-too-long)
sciris/sc_settings.py:819:0: C0304: Final newline missing (missing-final-newline)
sciris/sc_settings.py:700:0: W0622: Redefining built-in 'help' (redefined-builtin)
sciris/sc_settings.py:69:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_settings.py:160:17: W0621: Redefining name 'options' from outer scope (line 694) (redefined-outer-name)
sciris/sc_settings.py:173:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_settings.py:193:15: R1721: Unnecessary use of a comprehension, use dict(self.items()) instead. (unnecessary-comprehension)
sciris/sc_settings.py:224:4: W0221: Number of parameters was 10 in 'odict.disp' and is now 1 in overriding 'ScirisOptions.disp' method (arguments-differ)
sciris/sc_settings.py:224:4: W0221: Variadics removed in overriding 'ScirisOptions.disp' method (arguments-differ)
sciris/sc_settings.py:246:8: W0621: Redefining name 'options' from outer scope (line 694) (redefined-outer-name)
sciris/sc_settings.py:321:12: R1704: Redefining argument with the local name 'key' (redefined-argument-from-local)
sciris/sc_settings.py:321:16: R1704: Redefining argument with the local name 'value' (redefined-argument-from-local)
sciris/sc_settings.py:325:22: C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
sciris/sc_settings.py:369:58: C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
sciris/sc_settings.py:413:16: C0415: Import outside toplevel (IPython.get_ipython) (import-outside-toplevel)
sciris/sc_settings.py:414:16: C0415: Import outside toplevel (matplotlib_inline) (import-outside-toplevel)
sciris/sc_settings.py:470:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_settings.py:581:12: W0201: Attribute 'rc' defined outside __init__ (attribute-defined-outside-init)
sciris/sc_settings.py:700:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_settings.py:700:0: R0914: Too many local variables (30/20) (too-many-locals)
sciris/sc_settings.py:739:8: W0621: Redefining name 'sc' from outer scope (line 23) (redefined-outer-name)
sciris/sc_settings.py:739:8: W0404: Reimport 'sciris' (imported line 23) (reimported)
sciris/sc_settings.py:739:8: C0415: Import outside toplevel (sciris) (import-outside-toplevel)
sciris/sc_settings.py:789:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_settings.py:808:32: R1728: Consider using a generator instead 'max(len(l) for l in lineno)' (consider-using-generator)
sciris/sc_settings.py:700:0: R0912: Too many branches (25/15) (too-many-branches)
sciris/sc_settings.py:700:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
************* Module sciris.sc_printing
sciris/sc_printing.py:1657:0: C0304: Final newline missing (missing-final-newline)
sciris/sc_printing.py:64:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/sc_printing.py:93:15: C2801: Unnecessarily calls dunder method __dir__. Use dir built-in function. (unnecessary-dunder-call)
sciris/sc_printing.py:142:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_printing.py:152:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_printing.py:166:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_printing.py:180:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_printing.py:193:0: R0917: Too many positional arguments (12/5) (too-many-positional-arguments)
sciris/sc_printing.py:225:0: R0917: Too many positional arguments (16/5) (too-many-positional-arguments)
sciris/sc_printing.py:225:0: R0914: Too many local variables (46/20) (too-many-locals)
sciris/sc_printing.py:271:18: R1728: Consider using a generator instead 'sum(frame.function in ('prepr', '__repr__', '__str__') for frame in frames)' (consider-using-generator)
sciris/sc_printing.py:313:15: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_printing.py:299:4: R1702: Too many nested blocks (7/5) (too-many-nested-blocks)
sciris/sc_printing.py:354:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_printing.py:355:24: R1728: Consider using a generator instead 'max(len(label) for label in labels)' (consider-using-generator)
sciris/sc_printing.py:362:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_printing.py:388:12: W0621: Redefining name 'E' from outer scope (line 379) (redefined-outer-name)
sciris/sc_printing.py:392:7: R1729: Use a generator instead 'any(E is not None for E in [E1, E2, E3])' (use-a-generator)
sciris/sc_printing.py:225:0: R0912: Too many branches (39/15) (too-many-branches)
sciris/sc_printing.py:415:0: R0903: Too few public methods (1/2) (too-few-public-methods)
sciris/sc_printing.py:520:4: W1113: Keyword argument before variable positional arguments list in the definition of disp function (keyword-arg-before-vararg)
sciris/sc_printing.py:520:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_printing.py:540:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_printing.py:600:14: W0621: Redefining name 'sigfigs' from outer scope (line 673) (redefined-outer-name)
sciris/sc_printing.py:629:8: R1704: Redefining argument with the local name 'x' (redefined-argument-from-local)
sciris/sc_printing.py:600:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_printing.py:676:19: W0621: Redefining name 'sigfigs' from outer scope (line 673) (redefined-outer-name)
sciris/sc_printing.py:693:23: W0621: Redefining name 'sigfigs' from outer scope (line 673) (redefined-outer-name)
sciris/sc_printing.py:717:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_printing.py:717:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_printing.py:807:25: E0606: Possibly using variable 'x' before assignment (possibly-used-before-assignment)
sciris/sc_printing.py:769:0: R0912: Too many branches (16/15) (too-many-branches)
sciris/sc_printing.py:769:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_printing.py:887:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_printing.py:909:4: C0415: Import outside toplevel (.sc_math) (import-outside-toplevel)
sciris/sc_printing.py:916:24: R1728: Consider using a generator instead 'max(len(str(v)) for v in arr.flatten())' (consider-using-generator)
sciris/sc_printing.py:925:8: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_printing.py:929:8: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_printing.py:932:8: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_printing.py:887:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_printing.py:909:4: W0611: Unused sc_math imported from  as scm (unused-import)
sciris/sc_printing.py:951:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_printing.py:951:57: W0621: Redefining name 'indent' from outer scope (line 540) (redefined-outer-name)
sciris/sc_printing.py:986:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
sciris/sc_printing.py:988:24: R1728: Consider using a generator instead 'max(len(key) for key in keys)' (consider-using-generator)
sciris/sc_printing.py:993:12: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
sciris/sc_printing.py:994:40: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/sc_printing.py:997:24: R1728: Consider using a generator instead 'max(len(key) for key in keys)' (consider-using-generator)
sciris/sc_printing.py:1006:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_printing.py:1043:8: W0106: Expression "(print(controlstr), )" is assigned to nothing (expression-not-assigned)
sciris/sc_printing.py:1055:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_printing.py:1135:12: R1704: Redefining argument with the local name 'color' (redefined-argument-from-local)
sciris/sc_printing.py:1140:12: R1704: Redefining argument with the local name 'color' (redefined-argument-from-local)
sciris/sc_printing.py:1161:11: W0212: Access to a protected member _printout of a client class (protected-access)
sciris/sc_printing.py:1055:0: R0912: Too many branches (22/15) (too-many-branches)
sciris/sc_printing.py:1055:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_printing.py:1190:0: W1113: Keyword argument before variable positional arguments list in the definition of heading function (keyword-arg-before-vararg)
sciris/sc_printing.py:1247:45: W0621: Redefining name 'indent' from outer scope (line 540) (redefined-outer-name)
sciris/sc_printing.py:1284:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_printing.py:1314:8: C0415: Import outside toplevel (requests.post) (import-outside-toplevel)
sciris/sc_printing.py:1315:8: C0415: Import outside toplevel (json.dumps) (import-outside-toplevel)
sciris/sc_printing.py:1318:16: W0707: Consider explicitly re-raising using 'raise ImportError(errormsg) from E' (raise-missing-from)
sciris/sc_printing.py:1333:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_printing.py:1346:19: W3101: Missing timeout argument for method 'post' can cause your program to hang indefinitely (missing-timeout)
sciris/sc_printing.py:1351:16: W0707: Consider explicitly re-raising using 'raise RuntimeError(errormsg) from E' (raise-missing-from)
sciris/sc_printing.py:1284:0: R0912: Too many branches (16/15) (too-many-branches)
sciris/sc_printing.py:1368:8: C0415: Import outside toplevel (tempfile) (import-outside-toplevel)
sciris/sc_printing.py:1374:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_printing.py:1411:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/sc_printing.py:1415:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_printing.py:1480:4: C0104: Disallowed name "bar" (disallowed-name)
sciris/sc_printing.py:1415:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_printing.py:1567:4: W0231: __init__ method from base class 'prettyobj' is not called (super-init-not-called)
sciris/sc_printing.py:1577:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_printing.py:1590:12: C0104: Disallowed name "bar" (disallowed-name)
sciris/sc_printing.py:1601:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_printing.py:1635:4: W1113: Keyword argument before variable positional arguments list in the definition of __init__ function (keyword-arg-before-vararg)
sciris/sc_printing.py:1651:4: C0116: Missing function or method docstring (missing-function-docstring)
sciris/sc_printing.py:1652:8: C2801: Unnecessarily calls dunder method __enter__. Invoke context manager directly. (unnecessary-dunder-call)
sciris/sc_printing.py:1655:4: C0116: Missing function or method docstring (missing-function-docstring)
************* Module sciris.sc_versioning
sciris/sc_versioning.py:778:0: C0304: Final newline missing (missing-final-newline)
sciris/sc_versioning.py:72:0: R0914: Too many local variables (28/20) (too-many-locals)
sciris/sc_versioning.py:72:0: W1113: Keyword argument before variable positional arguments list in the definition of require function (keyword-arg-before-vararg)
sciris/sc_versioning.py:131:10: R1729: Use a generator instead 'all(e == True for e in data.values())' (use-a-generator)
sciris/sc_versioning.py:131:15: C0121: Comparison 'e == True' should be 'e is True' if checking for the singleton value True, or 'bool(e)' if testing for truthiness (singleton-comparison)
sciris/sc_versioning.py:72:0: R0912: Too many branches (18/15) (too-many-branches)
sciris/sc_versioning.py:166:0: R0914: Too many local variables (31/20) (too-many-locals)
sciris/sc_versioning.py:204:12: R1723: Unnecessary "else" after "break", remove the "else" and de-indent the code inside it (no-else-break)
sciris/sc_versioning.py:217:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_versioning.py:222:21: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_versioning.py:242:12: C0415: Import outside toplevel (git) (import-outside-toplevel)
sciris/sc_versioning.py:166:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_versioning.py:236:20: W0612: Unused variable 'actor' (unused-variable)
sciris/sc_versioning.py:236:34: W0612: Unused variable 'offset' (unused-variable)
sciris/sc_versioning.py:270:0: R0912: Too many branches (17/15) (too-many-branches)
sciris/sc_versioning.py:333:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_versioning.py:365:8: C0415: Import outside toplevel (inspect) (import-outside-toplevel)
sciris/sc_versioning.py:378:25: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
sciris/sc_versioning.py:395:0: R0917: Too many positional arguments (11/5) (too-many-positional-arguments)
sciris/sc_versioning.py:395:0: R0914: Too many local variables (21/20) (too-many-locals)
sciris/sc_versioning.py:395:56: W0621: Redefining name 'require' from outer scope (line 72) (redefined-outer-name)
sciris/sc_versioning.py:430:4: C0415: Import outside toplevel (sys) (import-outside-toplevel)
sciris/sc_versioning.py:431:4: C0415: Import outside toplevel (platform) (import-outside-toplevel)
sciris/sc_versioning.py:432:4: C0415: Import outside toplevel (numpy) (import-outside-toplevel)
sciris/sc_versioning.py:433:4: C0415: Import outside toplevel (pandas) (import-outside-toplevel)
sciris/sc_versioning.py:434:4: C0415: Import outside toplevel (matplotlib) (import-outside-toplevel)
sciris/sc_versioning.py:435:4: C0415: Import outside toplevel (sc_version.__version__) (import-outside-toplevel)
sciris/sc_versioning.py:489:0: R0914: Too many local variables (23/20) (too-many-locals)
sciris/sc_versioning.py:519:12: C0415: Import outside toplevel (PIL) (import-outside-toplevel)
sciris/sc_versioning.py:536:12: C0415: Import outside toplevel (PIL.ExifTags.TAGS) (import-outside-toplevel)
sciris/sc_versioning.py:571:22: W0631: Using possibly undefined loop variable 'line' (undefined-loop-variable)
sciris/sc_versioning.py:571:27: W0631: Using possibly undefined loop variable 'line' (undefined-loop-variable)
sciris/sc_versioning.py:571:53: W0631: Using possibly undefined loop variable 'line' (undefined-loop-variable)
sciris/sc_versioning.py:489:0: R0912: Too many branches (21/15) (too-many-branches)
sciris/sc_versioning.py:599:0: R0917: Too many positional arguments (13/5) (too-many-positional-arguments)
sciris/sc_versioning.py:599:71: W0621: Redefining name 'require' from outer scope (line 72) (redefined-outer-name)
sciris/sc_versioning.py:600:21: W0613: Unused argument 'user' (unused-argument)
sciris/sc_versioning.py:665:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_versioning.py:665:53: W0621: Redefining name 'loadmetadata' from outer scope (line 489) (redefined-outer-name)
sciris/sc_versioning.py:713:8: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_versioning.py:725:12: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_versioning.py:742:20: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_versioning.py:763:24: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/sc_versioning.py:665:0: R0912: Too many branches (16/15) (too-many-branches)
************* Module sciris.sc_datetime
sciris/sc_datetime.py:81:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:96:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:97:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:99:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:100:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:101:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:102:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:104:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:105:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:106:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation)
sciris/sc_datetime.py:107:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:108:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:109:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:110:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:111:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:113:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:114:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:115:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:116:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:117:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:118:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:119:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:120:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:121:0: W0311: Bad indentation. Found 12 spaces, expected 8 (bad-indentation)
sciris/sc_datetime.py:122:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:555:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:556:0: W0311: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
sciris/sc_datetime.py:111:12: W0707: Consider explicitly re-raising using 'raise TypeError(errormsg) from E' (raise-missing-from)
sciris/sc_datetime.py:125:0: R0914: Too many local variables (23/20) (too-many-locals)
sciris/sc_datetime.py:125:0: W1113: Keyword argument before variable positional arguments list in the definition of readdate function (keyword-arg-before-vararg)
sciris/sc_datetime.py:210:34: W0212: Access to a protected member _sanitize_iterables of a client class (protected-access)
sciris/sc_datetime.py:214:8: R1704: Redefining argument with the local name 'datestr' (redefined-argument-from-local)
sciris/sc_datetime.py:246:13: W0212: Access to a protected member _sanitize_output of a client class (protected-access)
sciris/sc_datetime.py:125:0: R0912: Too many branches (19/15) (too-many-branches)
sciris/sc_datetime.py:214:4: R1702: Too many nested blocks (6/5) (too-many-nested-blocks)
sciris/sc_datetime.py:250:0: R0914: Too many local variables (24/20) (too-many-locals)
sciris/sc_datetime.py:250:0: W1113: Keyword argument before variable positional arguments list in the definition of date function (keyword-arg-before-vararg)
sciris/sc_datetime.py:305:8: W0621: Redefining name 'day' from outer scope (line 393) (redefined-outer-name)
sciris/sc_datetime.py:307:16: R1728: Consider using a generator instead 'sum(v is not None for v in ymd)' (consider-using-generator)
sciris/sc_datetime.py:338:29: W0212: Access to a protected member _sanitize_iterables of a client class (protected-access)
sciris/sc_datetime.py:346:15: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
sciris/sc_datetime.py:389:13: W0212: Access to a protected member _sanitize_output of a client class (protected-access)
sciris/sc_datetime.py:250:0: R0912: Too many branches (29/15) (too-many-branches)
sciris/sc_datetime.py:427:29: W0212: Access to a protected member _sanitize_iterables of a client class (protected-access)
sciris/sc_datetime.py:449:16: W0707: Consider explicitly re-raising using 'raise ValueError(errormsg) from E' (raise-missing-from)
sciris/sc_datetime.py:452:13: W0212: Access to a protected member _sanitize_output of a client class (protected-access)
sciris/sc_datetime.py:393:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_datetime.py:493:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/sc_datetime.py:529:18: R1719: The if expression can be replaced with 'not test' (simplifiable-if-expression)
sciris/sc_datetime.py:558:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments)
sciris/sc_datetime.py:618:15: E0606: Possibly using variable 'delta' before assignment (possibly-used-before-assignment)
sciris/sc_datetime.py:624:12: R1704: Redefining argument with the local name 'datestr' (redefined-argument-from-local)
sciris/sc_datetime.py:626:26: R1719: The if expression can be replaced with 'not test' (simplifiable-if-expression)
sciris/sc_datetime.py:727:4: W0601: Global variable '_tictime' undefined at the module level (global-variable-undefined)
sciris/sc_datetime.py:770:19: W0631: Using possibly undefined loop variable 'label' (undefined-loop-variable)
sciris/sc_datetime.py:773:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments)
sciris/sc_datetime.py:816:4: W0621: Redefining name 'now' from outer scope (line 43) (redefined-outer-name)
sciris/sc_datetime.py:817:4: W0601: Global variable '_tictime' undefined at the module level (global-variable-undefined)
sciris/sc_datetime.py:773:0: R0912: Too many branches (22/15) (too-many-branches)
sciris/sc_datetime.py:773:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_datetime.py:882:0: W1113: Keyword argument before variable positional arguments list in the definition of toctic function (keyword-arg-before-vararg)
sciris/sc_datetime.py:882:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
sciris/sc_datetime.py:969:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
sciris/sc_datetime.py:1056:8: W0621: Redefining name 'now' from outer scope (line 43) (redefined-outer-name)
sciris/sc_datetime.py:1105:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_datetime.py:1111:11: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
sciris/sc_datetime.py:1288:19: W0621: Redefining name 'date' from outer scope (line 250) (redefined-outer-name)
sciris/sc_datetime.py:1266:0: R0912: Too many branches (19/15) (too-many-branches)
sciris/sc_datetime.py:1426:4: W0601: Global variable '_delaytime' undefined at the module level (global-variable-undefined)
sciris/sc_datetime.py:1382:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
************* Module sciris.sc_asd
sciris/sc_asd.py:209:0: C0301: Line too long (227/200) (line-too-long)
sciris/sc_asd.py:18:0: R0913: Too many arguments (22/20) (too-many-arguments)
sciris/sc_asd.py:18:0: R0917: Too many positional arguments (22/5) (too-many-positional-arguments)
sciris/sc_asd.py:18:0: R0914: Too many local variables (65/20) (too-many-locals)
sciris/sc_asd.py:187:8: R1723: Unnecessary "elif" after "break", remove the leading "el" from "elif" (no-else-break)
sciris/sc_asd.py:206:12: R1731: Consider using 'newval = max(newval, xmin[par])' instead of unnecessary if block (consider-using-max-builtin)
sciris/sc_asd.py:207:12: R1730: Consider using 'newval = min(newval, xmax[par])' instead of unnecessary if block (consider-using-min-builtin)
sciris/sc_asd.py:18:0: R0912: Too many branches (50/15) (too-many-branches)
************* Module sciris._extras.ansicolors
sciris/_extras/ansicolors.py:104:33: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
************* Module sciris._extras.legacy
sciris/_extras/legacy.py:565:0: C0304: Final newline missing (missing-final-newline)
sciris/_extras/legacy.py:60:8: E0213: Method '__init__' should have "self" as first argument (no-self-argument)
sciris/_extras/legacy.py:67:16: W0201: Attribute 'state' defined outside __init__ (attribute-defined-outside-init)
sciris/_extras/legacy.py:58:4: R0903: Too few public methods (1/2) (too-few-public-methods)
sciris/_extras/legacy.py:70:4: C0115: Missing class docstring (missing-class-docstring)
sciris/_extras/legacy.py:72:30: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:79:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:83:4: C0115: Missing class docstring (missing-class-docstring)
sciris/_extras/legacy.py:85:30: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:90:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:101:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:96:4: R0912: Too many branches (17/15) (too-many-branches)
sciris/_extras/legacy.py:146:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:156:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:177:8: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/_extras/legacy.py:245:0: R0205: Class 'legacy_dataframe' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
sciris/_extras/legacy.py:279:34: R1734: Consider using [] instead of list() (use-list-literal)
sciris/_extras/legacy.py:286:41: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:289:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:312:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:313:12: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/_extras/legacy.py:343:8: C0415: Import outside toplevel (pandas) (import-outside-toplevel)
sciris/_extras/legacy.py:349:19: R1734: Consider using [] instead of list() (use-list-literal)
sciris/_extras/legacy.py:361:19: R1721: Unnecessary use of a comprehension, use list(cols.values()) instead. (unnecessary-comprehension)
sciris/_extras/legacy.py:365:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:366:12: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/_extras/legacy.py:383:31: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:384:20: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/_extras/legacy.py:386:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:387:16: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/_extras/legacy.py:393:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
sciris/_extras/legacy.py:394:12: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/_extras/legacy.py:330:4: R0912: Too many branches (18/15) (too-many-branches)
sciris/_extras/legacy.py:408:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments)
sciris/_extras/legacy.py:494:8: C0415: Import outside toplevel (tqdm.tqdm) (import-outside-toplevel)
sciris/_extras/legacy.py:544:8: W0122: Use of exec (exec-used)
sciris/_extras/legacy.py:549:8: W0122: Use of exec (exec-used)
sciris/_extras/legacy.py:553:8: W0122: Use of exec (exec-used)
sciris/_extras/legacy.py:556:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception from exc' (raise-missing-from)
sciris/_extras/legacy.py:556:12: W0719: Raising too general exception: Exception (broad-exception-raised)
sciris/_extras/legacy.py:560:12: W0122: Use of exec (exec-used)
sciris/_extras/legacy.py:563:25: W0123: Use of eval (eval-used)
************* Module sciris._extras.__init__
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_parallel) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_plotting -> sciris.sc_colors) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_printing -> sciris.sc_utils) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_printing -> sciris.sc_math) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_fileio) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_nested) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_odict) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_dataframe) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_plotting) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_profiling) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_settings) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_printing) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_versioning) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_datetime) (cyclic-import)
sciris/_extras/__init__.py:1:0: R0401: Cyclic import (sciris -> sciris.sc_asd) (cyclic-import)

-----------------------------------
Your code has been rated at 8.93/10

