diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 31afae5..6b02912 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: exclude: ^(docs|graphics|utils)/ - repo: https://github.com/PyCQA/pylint - rev: v2.17.0 + rev: v3.3.1 hooks: - id: pylint args: [--disable=import-error] diff --git a/tests/embeddings/image_embeddings/test_frqi.py b/tests/embeddings/image_embeddings/test_frqi.py index 0a8441a..83778d8 100644 --- a/tests/embeddings/image_embeddings/test_frqi.py +++ b/tests/embeddings/image_embeddings/test_frqi.py @@ -173,6 +173,8 @@ def test_pixel_value(self, img_dims, pixel_vals, circuit_pixel_value): ((2, 2), None, PIXEL_POS_BINARY2), ], ) + + # pylint: disable=R0917 def test_frqi( self, img_dims, @@ -189,7 +191,8 @@ def test_frqi( test_circuit.h(list(range(int(np.sqrt(math.prod(img_dims)))))) for pixel, pixel_pos_binary in enumerate(pixel_pos_binary_list): test_circuit.compose( - circuit_pixel_position(img_dims, pixel_pos_binary), inplace=True + circuit_pixel_position(img_dims, pixel_pos_binary), + inplace=True, # pylint: disable=too-many-arguments ) test_circuit.compose( circuit_pixel_value(img_dims, pixel_vals, pixel), inplace=True @@ -208,5 +211,4 @@ def test_frqi( pixel_vals = np.random.random(math.prod(img_dims)) test_circuit.assign_parameters(pixel_vals, inplace=True) mock_circuit.assign_parameters(pixel_vals, inplace=True) - assert mock_circuit == test_circuit diff --git a/tests/embeddings/image_embeddings/test_neqr.py b/tests/embeddings/image_embeddings/test_neqr.py index f6541a5..b119b9a 100644 --- a/tests/embeddings/image_embeddings/test_neqr.py +++ b/tests/embeddings/image_embeddings/test_neqr.py @@ -101,6 +101,8 @@ def test_pixel_value( "img_dims, pixel_vals, max_color_intensity", [((2, 2), [list(range(1, 5))], MAX_COLOR_INTENSITY)], ) + + # pylint: disable=R0917 def test_neqr( self, img_dims, diff --git a/tests/neural_networks/layers/test_fully_connected_layer.py b/tests/neural_networks/layers/test_fully_connected_layer.py index 6d0af7c..eb05f2a 100644 --- a/tests/neural_networks/layers/test_fully_connected_layer.py +++ b/tests/neural_networks/layers/test_fully_connected_layer.py @@ -67,6 +67,8 @@ class TestFullyConnectedLayer: (6, None, [2, 3], "circuit4"), ], ) + + # pylint: disable=R0917 def test_build_layer( self, request, num_qubits, circuit, unmeasured_bits, resulting_circuit ): diff --git a/tests/neural_networks/layers/test_pooling_layer.py b/tests/neural_networks/layers/test_pooling_layer.py index 53d96bd..6953c4b 100644 --- a/tests/neural_networks/layers/test_pooling_layer.py +++ b/tests/neural_networks/layers/test_pooling_layer.py @@ -202,6 +202,8 @@ def test_conditional(self, num_qubits, circuit, unmeasured_bits, conditional): (None, None, [2, 3, 5], True, "circuit4a"), ], ) + + # pylint: disable=R0917 def test_build_layer( self, request, @@ -264,6 +266,8 @@ def test_conditional(self, num_qubits, circuit, unmeasured_bits, conditional): (None, None, [2, 3, 5, 7], True, "circuit7a"), ], ) + + # pylint: disable=R0917 def test_build_layer( self, request, diff --git a/tests/tensor_networks/test_mera.py b/tests/tensor_networks/test_mera.py index 50f5554..c3f9320 100644 --- a/tests/tensor_networks/test_mera.py +++ b/tests/tensor_networks/test_mera.py @@ -235,6 +235,8 @@ def test_mera_general(self, num_qubits, layer_depth, complex_structure): (5, None, True, "complex_simple"), ], ) + + # pylint: disable=R0917 def test_mera_backbone( self, num_qubits, layer_depth, complex_structure, parameterization, mera_circuit ): diff --git a/tests/tensor_networks/test_mps.py b/tests/tensor_networks/test_mps.py index d4d101e..9ac41d5 100644 --- a/tests/tensor_networks/test_mps.py +++ b/tests/tensor_networks/test_mps.py @@ -133,6 +133,8 @@ def test_mps_general(self, num_qubits, complex_structure): (4, True, "complex_general"), ], ) + + # pylint: disable=R0917 def test_mps_backbone( self, num_qubits, diff --git a/tests/tensor_networks/test_ttn.py b/tests/tensor_networks/test_ttn.py index 1c913e4..6a1a10c 100644 --- a/tests/tensor_networks/test_ttn.py +++ b/tests/tensor_networks/test_ttn.py @@ -142,6 +142,8 @@ def test_ttn_general(self, num_qubits, complex_structure): (4, True, "complex_general"), ], ) + + # pylint: disable=R0917 def test_ttn_backbone( self, num_qubits,