From dd41c6980ff04862595f6e99dc25442b18fb77ca Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:26:33 -0500 Subject: [PATCH] Add a linter to check the images' alt text (#718) (#721) * Create linter and allowlist * refactor linter and add it to CI * refactor loop * use VCS to install the linter (cherry picked from commit 80b2a50b9d4a092a8b6d3d3d1710420bfa989732) Co-authored-by: Arnau Casau <47946624+arnaucasau@users.noreply.github.com> --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index c50df0eb..f4da0ed3 100644 --- a/tox.ini +++ b/tox.ini @@ -19,6 +19,9 @@ commands = black qiskit_addon_cutting/ docs/ test/ [testenv:lint] +image-tester-commit = 7ae965ccf21c39e5170334ec7f4882756883860a +deps = + git+https://github.com/Qiskit/documentation.git@{[testenv:lint]image-tester-commit}\#egg=sphinx-alt-text-validator&subdirectory=scripts/image-tester extras = lint commands = @@ -29,6 +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 nbqa pylint -rn docs/ [testenv:{,py-,py3-,py38-,py39-,py310-,py311-,py312-,py313-}notebook]