Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pylint from v2.17.0 to v3.3.1 for Python 3.12 Support #144

Merged
merged 24 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9d39fcc
Added Docker File
Abhinavexists Oct 4, 2024
573f71b
Added Docker File
Abhinavexists Oct 5, 2024
9378a20
added build.yml
Abhinavexists Oct 5, 2024
10da4cb
consistent
Abhinavexists Oct 5, 2024
6a74267
added github tokens
Abhinavexists Oct 5, 2024
461de53
updated build.yml
Abhinavexists Oct 7, 2024
0525bb0
updated build.yml
Abhinavexists Oct 7, 2024
e105f1b
updated build.yml
Abhinavexists Oct 7, 2024
cfefd39
updated build.yml
Abhinavexists Oct 7, 2024
c9bd8e5
updated pre-config.yaml
Abhinavexists Oct 7, 2024
b70bec3
updated unit_test.yml
Abhinavexists Oct 7, 2024
88085a6
updated unit_test.yml
Abhinavexists Oct 7, 2024
7f46eda
reverted unit_test.yml and .pre-commit-config.yaml
Abhinavexists Oct 15, 2024
3118f13
Merge branch 'main' into main
Abhinavexists Oct 15, 2024
ad71905
Merge branch 'main' into main
Abhinavexists Oct 27, 2024
19f7f0c
updated build.yml - Single docker build
Abhinavexists Oct 30, 2024
bac9e76
Merge branch 'main' of https://github.com/Abhinavks1405/piQture
Abhinavexists Oct 30, 2024
72ba8df
Merge branch 'SaashaJoshi:main' into main
Abhinavexists Oct 30, 2024
aa31ab1
updated pylint v3.3.1
Abhinavexists Oct 30, 2024
56084b9
Merge branch 'main' into main
SaashaJoshi Oct 31, 2024
3a7277d
Merge branch 'main' into main
Abhinavexists Nov 2, 2024
9840de4
resolved linting issue
Abhinavexists Nov 2, 2024
c2b0ef0
Merge branch 'main' of https://github.com/Abhinavks1405/piQture
Abhinavexists Nov 2, 2024
6a2ec4a
Merge branch 'main' into main
SaashaJoshi Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 4 additions & 2 deletions tests/embeddings/image_embeddings/test_frqi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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
2 changes: 2 additions & 0 deletions tests/embeddings/image_embeddings/test_neqr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions tests/neural_networks/layers/test_fully_connected_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down
4 changes: 4 additions & 0 deletions tests/neural_networks/layers/test_pooling_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions tests/tensor_networks/test_mera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down
2 changes: 2 additions & 0 deletions tests/tensor_networks/test_mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions tests/tensor_networks/test_ttn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading