Skip to content

Commit

Permalink
Add a linter to check the images' alt text (#63)
Browse files Browse the repository at this point in the history
* Create linter and allowlist

* refactor linter and add it to CI

* refactor loop

* use VCS to install the linter

* Skip invalid image

* Small fix of the linter
  • Loading branch information
arnaucasau authored Dec 12, 2024
1 parent d6c8db4 commit 1996a0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ commands =
nbqa ruff --fix docs/

[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
basepython = python3.10
extras =
lint
Expand All @@ -31,6 +34,7 @@ commands =
nbqa ruff docs/
mypy qiskit_addon_utils/
pylint -rn qiskit_addon_utils/ test/
sphinx-alt-text-validator -f qiskit_addon_utils -s qiskit_addon_utils/problem_generators/generate_time_evolution_circuit.py
nbqa pylint -rn docs/
typos
reno lint
Expand Down

0 comments on commit 1996a0d

Please sign in to comment.