From 444fc6ab3d01a9a88938d27693df86c3c709c256 Mon Sep 17 00:00:00 2001 From: Rebecca Dimock Date: Wed, 18 Dec 2024 11:19:03 -0600 Subject: [PATCH] Add alt text to relevant images --- 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]