From 0015016c3a4619726ac7ca83a740f4ddb0c9d3df Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:21:17 +0000 Subject: [PATCH] Add alt text (#43) (#46) (cherry picked from commit ed55040e9b2452a7c97c25c469ed9143bee4873f) Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com> --- qiskit_addon_mpf/backends/quimb_layers/__init__.py | 2 ++ qiskit_addon_mpf/backends/tenpy_layers/__init__.py | 2 ++ tox.ini | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/qiskit_addon_mpf/backends/quimb_layers/__init__.py b/qiskit_addon_mpf/backends/quimb_layers/__init__.py index a2aa193..b8dec2d 100644 --- a/qiskit_addon_mpf/backends/quimb_layers/__init__.py +++ b/qiskit_addon_mpf/backends/quimb_layers/__init__.py @@ -67,6 +67,7 @@ Suzuki-Trotter formula. .. plot:: + :alt: Output from the previous code. :context: close-figs :include-source: @@ -81,6 +82,7 @@ into a single circuit with barriers between them to ease the visualization). .. plot:: + :alt: Output from the previous code. :context: close-figs :include-source: diff --git a/qiskit_addon_mpf/backends/tenpy_layers/__init__.py b/qiskit_addon_mpf/backends/tenpy_layers/__init__.py index 385a98f..0b6225e 100644 --- a/qiskit_addon_mpf/backends/tenpy_layers/__init__.py +++ b/qiskit_addon_mpf/backends/tenpy_layers/__init__.py @@ -74,6 +74,7 @@ Suzuki-Trotter formula. .. plot:: + :alt: Output from the previous code. :context: close-figs :include-source: @@ -88,6 +89,7 @@ into a single circuit with barriers between them to ease the visualization). .. plot:: + :alt: Output from the previous code. :context: close-figs :include-source: diff --git a/tox.ini b/tox.ini index 104b302..91b4158 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ commands = [testenv:lint] image-tester-commit = 7ae965ccf21c39e5170334ec7f4882756883860a -deps = +deps = git+https://github.com/Qiskit/documentation.git@{[testenv:lint]image-tester-commit}\#egg=sphinx-alt-text-validator&subdirectory=scripts/image-tester basepython = python3.10 extras = @@ -34,7 +34,7 @@ commands = nbqa ruff docs/ mypy qiskit_addon_mpf/ pylint -rn qiskit_addon_mpf/ test/ - sphinx-alt-text-validator -f qiskit_addon_mpf -s qiskit_addon_mpf/backends/tenpy_layers/__init__.py qiskit_addon_mpf/backends/quimb_layers/__init__.py + sphinx-alt-text-validator -f qiskit_addon_mpf nbqa pylint -rn docs/ typos reno lint