Skip to content

Commit

Permalink
Disable failing pylint checks
Browse files Browse the repository at this point in the history
There has been a recent regression in astroid module (since version 3.2.0, most likely related to changes in igetattr method). It causes our CI workflows runs to fail. astroid is a transitive dependency (pytest-pylint <- pylint <- astroid). Versions of transitive dependencies are not pinned in the project configuration, which allowed astroid regression to break the CI.

pylint checks should be re-enabled once astroid bug pylint-dev/astroid#2448 gets fixed.
  • Loading branch information
rbrazinskas committed May 23, 2024
1 parent 4760d74 commit 97fda95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ def test_drop_rz_before_measurement(self, qubits):
assert len(new) == 2 # still 2 Moments
# the ZPowGate preceding the measurement has been dropped
assert len(tuple(new.all_operations())) == 3
op = new[0].operations[0]
op = new[0].operations[0] # pylint: disable=no-member
assert isinstance(op.gate, cirq.XPowGate)
assert op.qubits == (q0,)
op = new[0].operations[1]
op = new[0].operations[1] # pylint: disable=no-member
assert isinstance(op.gate, cirq.ZPowGate)
assert op.qubits == (q2,)

Expand All @@ -202,7 +202,7 @@ def test_drop_rz_before_measurement_drop_final(self, qubits):
assert len(new) == 2 # still 2 Moments
# both ZPowGates were dropped
assert len(tuple(new.all_operations())) == 2
op = new[0].operations[0]
op = new[0].operations[0] # pylint: disable=no-member
assert isinstance(op.gate, cirq.XPowGate)
assert op.qubits == (q0,)

Expand Down

0 comments on commit 97fda95

Please sign in to comment.