You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GithubActions job is being run, a line poetry run pylint --exit-zero tests/ toqito/ leads to the following:
pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.Exception' ?) instead.
Some other issues that are raised by pylint are:
*************Moduletests.test_nonlocal_games.test_xor_gametests/test_nonlocal_games/test_xor_game.py:6:0: W0611: UnusedNonlocalGameimportedfromtoqito.nonlocal_games.nonlocal_game (unused-import)
*************Moduletests.test_channel_ops.test_dual_channeltests/test_channel_ops/test_dual_channel.py:78:4: W0621: Redefiningname'choi'fromouterscope (line5) (redefined-outer-name)
*************Moduletests.test_channel_metrics.test_completely_bounded_trace_normtests/test_channel_metrics/test_completely_bounded_trace_norm.py:19:9: W0612: Unusedvariable'eigv' (unused-variable)
*************Moduletoqito.state_props.has_symmetric_extensiontoqito/state_props/has_symmetric_extension.py:120:23: E1136: Value'dim'isunsubscriptable (unsubscriptable-object)
toqito/state_props/has_symmetric_extension.py:120:36: E1136: Value'dim'isunsubscriptable (unsubscriptable-object)
toqito/state_props/has_symmetric_extension.py:111:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
*************Moduletoqito.state_props.entanglement_of_formationtoqito/state_props/entanglement_of_formation.py:90:[14](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:15): R1721: Unnecessary use of a comprehension, use list(dim) instead. (unnecessary-comprehension)toqito/state_props/entanglement_of_formation.py:68:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
*************Moduletoqito.state_props.schmidt_ranktoqito/state_props/schmidt_rank.py:95:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
*************Moduletoqito.state_props.is_ppttoqito/state_props/is_ppt.py:86:16: E1136: Value'sqrt_rho_dims'isunsubscriptable (unsubscriptable-object)
toqito/state_props/is_ppt.py:86:34: E1136: Value'sqrt_rho_dims'isunsubscriptable (unsubscriptable-object)
toqito/state_props/is_ppt.py:86:54: E1136: Value'sqrt_rho_dims'isunsubscriptable (unsubscriptable-object)
toqito/state_props/is_ppt.py:86:72: E1136: Value'sqrt_rho_dims'isunsubscriptable (unsubscriptable-object)
*************Moduletoqito.state_props.is_mutually_unbiased_basistoqito/state_props/is_mutually_unbiased_basis.py:92:68: R1736: Unnecessarylistindexlookup, use'_'instead (unnecessary-list-index-lookup)
*************Moduletoqito.state_props.sk_vec_normtoqito/state_props/sk_vec_norm.py:62:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
*************Moduletoqito.state_props.is_separabletoqito/state_props/is_separable.py:184:4: C0501: `for`loopcouldbe`any(has_symmetric_extension(state, level) for _ in range(2, level))` (consider-using-any-or-all)
toqito/state_props/is_separable.py:78:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
toqito/state_props/is_separable.py:164:8: W0612: Unusedvariable'Xt' (unused-variable)
*************Moduletoqito.helper.npa_hierarchytoqito/helper/npa_hierarchy.py:127:0: R0914: Toomanylocalvariables (34/25) (too-many-locals)
*************Moduletoqito.nonlocal_games.nonlocal_gametoqito/nonlocal_games/nonlocal_game.py:126:16: R0204: Redefinitionoftruth_assignment type from .ndarraytotuple (redefined-variable-type)
*************Moduletoqito.channel_ops.dual_channeltoqito/channel_ops/dual_channel.py:7:0: W0611: Unusedis_squareimportedfromtoqito.matrix_props (unused-import)
*************Moduletoqito.channel_metrics.completely_bounded_trace_normtoqito/channel_metrics/completely_bounded_trace_norm.py:41:4: R1705: Unnecessary"elif"after"return", removetheleading"el"from"elif" (no-else-return)
*************Moduletoqito.channel_metrics.fidelity_of_separabilitytoqito/channel_metrics/fidelity_of_separability.py:16:0: W9016: "solver_option, verbosity_option"missinginparametertypedocumentation (missing-type-doc)
toqito/channel_metrics/fidelity_of_separability.py:16:0: W9006: "ValueError"notdocumentedasbeingraised (missing-raises-doc)
toqito/channel_metrics/fidelity_of_separability.py:16:0: W9006: "ValueError"notdocumentedasbeingraised (missing-raises-doc)
*************Moduletoqito.perms.swaptoqito/perms/swap.py:160:4: R0204: Redefinitionofsys type fromlistto .ndarray (redefined-variable-type)
*************Moduletoqito.perms.permute_systemstoqito/perms/permute_systems.py:212:8: R0204: Redefinitionofdim type from .ndarraytolist (redefined-variable-type)
*************Moduletoqito.matrix_ops.vectors_from_gram_matrixtoqito/matrix_ops/vectors_from_gram_matrix.py:13:11: W0718: CatchingtoogeneralexceptionException (broad-exception-caught)
*************Moduletoqito.matrix_ops.inner_producttoqito/matrix_ops/inner_product.py:5:0: W90[15](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:16): "v1, v2" missing in parameter documentation (missing-param-doc)toqito/matrix_ops/inner_product.py:5:0: W9017: "args"differinginparameterdocumentation (differing-param-doc)
*************Moduletoqito.matrix_ops.outer_producttoqito/matrix_ops/outer_product.py:5:0: W9015: "v1, v2"missinginparameterdocumentation (missing-param-doc)
toqito/matrix_ops/outer_product.py:5:0: W9017: "args"differinginparameterdocumentation (differing-param-doc)
*************Moduletoqito.channels.partial_transposetoqito/channels/partial_transpose.py:13:0: W0102: Dangerousdefaultvalue [] asargument (dangerous-default-value)
*************Moduletoqito.channels.partial_tracetoqito/channels/partial_trace.py:13:0: W0102: Dangerousdefaultvalue [] asargument (dangerous-default-value)
toqito/channels/partial_trace.py:[16](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:17)9:8: R0204: Redefinition of prod_dim_sys type from int to .ndarray (redefined-variable-type)*************Moduletoqito.channels.realignmenttoqito/channels/realignment.py:82:4: R0204: Redefinitionofdim_x type from .ndarraytonumpy.core.numerictypes.int32 (redefined-variable-type)
*************Moduletoqito.state_opt.ppt_distinguishabilitytoqito/state_opt/ppt_distinguishability.py:127:0: W9016: "dist_method"missinginparametertypedocumentation (missing-type-doc)
toqito/state_opt/ppt_distinguishability.py:195:47: R[17](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:18)36: Unnecessary list index lookup, use '_' instead (unnecessary-list-index-lookup)toqito/state_opt/ppt_distinguishability.py:206:0: W9016: "dist_method"missinginparametertypedocumentation (missing-type-doc)
toqito/state_opt/ppt_distinguishability.py:268:46: R1736: Unnecessarylistindexlookup, use'_'instead (unnecessary-list-index-lookup)
*************Moduletoqito.state_opt.symmetric_extension_hierarchytoqito/state_opt/symmetric_extension_hierarchy.py:199:47: R1736: Unnecessarylistindexlookup, use'_'instead (unnecessary-list-index-lookup)
toqito/state_opt/symmetric_extension_hierarchy.py:172:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
toqito/state_opt/symmetric_extension_hierarchy.py:[18](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:19)0:4: R0[20](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:21)4: Redefinition of dim_list type from list to numpy.core.numerictypes.int32 (redefined-variable-type)*************Moduletoqito.state_opt.optimal_clonetoqito/state_opt/optimal_clone.py:136:8: R0204: Redefinitionofq_a type from .ndarraytonumpy.matrixlib.defmatrix.matrix (redefined-variable-type)
*************Moduletoqito.state_opt.state_distinguishabilitytoqito/state_opt/state_distinguishability.py:125:47: R1736: Unnecessarylistindexlookup, use'_'instead (unnecessary-list-index-lookup)
*************Moduletoqito.state_opt.state_exclusiontoqito/state_opt/state_exclusion.py:8:0: W9015: "primal_dual, solver, vectors"missinginparameterdocumentation (missing-param-doc)
toqito/state_opt/state_exclusion.py:8:0: W9016: "primal_dual"missinginparametertypedocumentation (missing-type-doc)
toqito/state_opt/state_exclusion.py:8:0: W9017: "states"differinginparameterdocumentation (differing-param-doc)
toqito/state_opt/state_exclusion.py:95:4: R1705: Unnecessary"else"after"return", removethe"else"andde-indentthecodeinsideit (no-else-return)
*************Moduletoqito.matrices.paulitoqito/matrices/pauli.py:100:12: R0204: Redefinitionofpauli_mat type from .ndarraytoscipy.sparse._csr.csr_matrix (redefined-variable-type)
*************Moduletoqito.states.basistoqito/states/basis.py:51:24: W0141: Usedbuiltinfunction'map'. Usingalistcomprehensioncanbeclearer. (bad-builtin)
*************Moduletoqito.channel_props.is_trace_preservingtoqito/channel_props/is_trace_preserving.py:104:8: R5501: Considerusing"elif"insteadof"else"then"if"toremoveoneindentationlevel (else-if-used)
toqito/channel_props/is_trace_preserving.py:104:11: C01[21](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:22): Comparison 'dim == None' should be 'dim is None' (singleton-comparison)*************Moduletoqito.matrix_props.is_block_positivetoqito/matrix_props/is_block_positive.py:71:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
*************Moduletoqito.matrix_propstoqito/matrix_props/__init__.py:21:0: W0404: Reimport'is_orthonormal' (importedline6) (reimported)
*************Moduletoqito.matrix_props.sk_normtoqito/matrix_props/sk_norm.py:20:0: R0914: Toomanylocalvariables (36/25) (too-many-locals)
toqito/matrix_props/sk_norm.py:[23](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:24)1:7: R0916: Too many boolean expressions in if statement (6/5) (too-many-boolean-expressions)toqito/matrix_props/sk_norm.py:[25](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:26)7:12: W0632: Possible unbalanced tuple unpacking with sequence defined at line 201 of scipy.special._orthogonal: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking)toqito/matrix_props/sk_norm.py:298:16: W0632: Possibleunbalancedtupleunpackingwithsequencedefinedatline201ofscipy.special._orthogonal: leftsidehas2labels, rightsidehas3values (unbalanced-tuple-unpacking)
toqito/matrix_props/sk_norm.py:96:8: R0204: Redefinitionofdim type fromintto .ndarray (redefined-variable-type)
toqito/matrix_props/sk_norm.py:135:4: R0204: Redefinitionofupper_boundtypefrom .ndarraytoint (redefined-variable-type)
toqito/matrix_props/sk_norm.py:332:0: R0914: Toomanylocalvariables ([26](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:27)/25) (too-many-locals)*************Moduletoqito.matrix_props.is_positive_definitetoqito/matrix_props/is_positive_definite.py:7:42: W0613: Unusedargument'rtol' (unused-argument)
toqito/matrix_props/is_positive_definite.py:7:63: W0613: Unusedargument'atol' (unused-argument)
toqito/matrix_props/is_positive_definite.py:4:0: W0611: Unusedis_hermitianimportedfromtoqito.matrix_props (unused-import)
*************Moduletoqito.random.random_povmtoqito/random/random_povm.py:52:21: R17[28](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:29): Consider using a generator instead 'sum(np.array(output_block).T.conj() @ output_block for output_block in input_block)' (consider-using-generator)*************Moduletoqito.state_metrics.fidelity_of_separabilitytoqito/state_metrics/fidelity_of_separability.py:15:0: W[90](https://github.com/purva-thakre/toqito/actions/runs/6527284296/job/17721926644#step:6:91)16: "solver_option, verbosity_option" missing in parameter type documentation (missing-type-doc)toqito/state_metrics/fidelity_of_separability.py:15:0: W9006: "ValueError"notdocumentedasbeingraised (missing-raises-doc)
toqito/state_metrics/fidelity_of_separability.py:15:0: W9006: "ValueError"notdocumentedasbeingraised (missing-raises-doc)
toqito/state_metrics/fidelity_of_separability.py:15:0: W9006: "ValueError"notdocumentedasbeingraised (missing-raises-doc)
The text was updated successfully, but these errors were encountered:
When a GithubActions job is being run, a line
poetry run pylint --exit-zero tests/ toqito/
leads to the following:Some other issues that are raised by pylint are:
The text was updated successfully, but these errors were encountered: