From 66911701b86d8ccdcf8da0b0ef9dd8054412e9b3 Mon Sep 17 00:00:00 2001 From: Rebecca Dimock <66339736+beckykd@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:18:33 -0600 Subject: [PATCH] Add alt text to relevant images (#725) --- qiskit_addon_cutting/instructions/move.py | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qiskit_addon_cutting/instructions/move.py b/qiskit_addon_cutting/instructions/move.py index 037187c2..477d56fa 100644 --- a/qiskit_addon_cutting/instructions/move.py +++ b/qiskit_addon_cutting/instructions/move.py @@ -48,6 +48,7 @@ class Move(Instruction): to each of the aforementioned cases: .. plot:: + :alt: Output from the previous code. :include-source: import numpy as np diff --git a/tox.ini b/tox.ini index f4da0ed3..3686bf14 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,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 extras = lint @@ -32,7 +32,7 @@ commands = mypy qiskit_addon_cutting/ reno lint pylint -rn qiskit_addon_cutting/ test/ - sphinx-alt-text-validator -f qiskit_addon_cutting -s qiskit_addon_cutting/instructions/move.py + sphinx-alt-text-validator -f qiskit_addon_cutting nbqa pylint -rn docs/ [testenv:{,py-,py3-,py38-,py39-,py310-,py311-,py312-,py313-}notebook]