Skip to content

Commit a9c5d17

Browse files
JohnVillalovosnejch
authored andcommitted
ci: run the pre-commit rst checks in the CI
These were only being run when a modification happened to pre-commit
1 parent 4e32439 commit a9c5d17

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ jobs:
4141
run: tox -e isort -- --check
4242
- name: Run pylint Python code static checker (https://github.com/PyCQA/pylint)
4343
run: tox -e pylint
44+
- name: Run pre-commit rst checks (https://pre-commit.com/)
45+
run: tox -e pre-commit-rst

tox.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,17 @@ commands = pytest tests/smoke {posargs}
146146

147147
[testenv:pre-commit]
148148
skip_install = true
149-
deps = -r requirements-precommit.txt
149+
deps = -r {toxinidir}/requirements-precommit.txt
150150
commands = pre-commit run --all-files --show-diff-on-failure
151151

152+
[testenv:pre-commit-rst]
153+
skip_install = true
154+
deps = -r {toxinidir}/requirements-precommit.txt
155+
commands =
156+
pre-commit run rst-backticks --all-files --show-diff-on-failure
157+
pre-commit run rst-directive-colons --all-files --show-diff-on-failure
158+
pre-commit run rst-inline-touching-normal --all-files --show-diff-on-failure
159+
152160
[testenv:install]
153161
skip_install = true
154162
deps = -r{toxinidir}/requirements.txt

0 commit comments

Comments
 (0)