Skip to content

Commit

Permalink
Update black and pylint versions (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanPuzzuoli authored Jan 24, 2025
1 parent e14af9d commit 3f5fc1d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ disable=fixme, # disabled as TODOs would show up as warnings
unnecessary-pass, # allow for methods with just "pass", for clarity
no-else-return, # relax "elif" after a clause with a return
docstring-first-line-empty, # relax docstring style
import-outside-toplevel
import-outside-toplevel,
not-callable,
cyclic-import



Expand Down
2 changes: 2 additions & 0 deletions qiskit_dynamics/backend/dynamics_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,12 +1106,14 @@ def _get_backend_channel_freqs(

for channel in drive_channels:
idx = int(channel[1:])
# pylint: disable=possibly-used-before-assignment
if idx >= len(drive_frequencies):
raise QiskitError(f"DriveChannel index {idx} is out of bounds.")
channel_freqs[channel] = drive_frequencies[idx]

for channel in meas_channels:
idx = int(channel[1:])
# pylint: disable=possibly-used-before-assignment
if idx >= len(meas_frequencies):
raise QiskitError(f"MeasureChannel index {idx} is out of bounds.")
channel_freqs[channel] = meas_frequencies[idx]
Expand Down
1 change: 1 addition & 0 deletions qiskit_dynamics/solvers/solver_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def rhs(t, y):
# convert results to correct basis if necessary
if isinstance(generator, BaseGeneratorModel):
if not model_in_frame_basis:
# pylint: disable=possibly-used-before-assignment
results.y = results_y_out_of_frame_basis(generator, results.y, y0.ndim)

generator.in_frame_basis = model_in_frame_basis
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
stestr>=3.0.0
astroid==2.14.2
pylint==2.16.2
astroid==3.2.2
pylint==3.2.3
black~=24.1
qiskit-sphinx-theme~=2.0
sphinx-autodoc-typehints
Expand All @@ -9,7 +9,7 @@ jupyter-sphinx
# https://github.com/jupyter/jupyter-sphinx/pull/226 is resolved.
ipykernel>=4.5.1
pygments>=2.4
reno>=3.4.0
reno>=4.1.0
nbsphinx
sphinxcontrib-bibtex
qutip
Expand Down

0 comments on commit 3f5fc1d

Please sign in to comment.