GeezerVison is showing github.com — ci: run the pre-commit rst checks in the CI · python-gitlab/python-gitlab@a9c5d17
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/lint.yml +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
41 | 41 | run: tox -e isort -- --check |
42 | 42 | - name: Run pylint Python code static checker (https://github.com/PyCQA/pylint) |
43 | 43 | run: tox -e pylint |
| 44 | + - name: Run pre-commit rst checks (https://pre-commit.com/) |
| 45 | + run: tox -e pre-commit-rst |
Collapse file
Copy file name to clipboardExpand all lines: tox.ini +9-1Lines changed: 9 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -146,9 +146,17 @@ commands = pytest tests/smoke {posargs} |
146 | 146 |
|
147 | 147 | [testenv:pre-commit] |
148 | 148 | skip_install = true |
149 | | -deps = -r requirements-precommit.txt |
| 149 | +deps = -r {toxinidir}/requirements-precommit.txt |
150 | 150 | commands = pre-commit run --all-files --show-diff-on-failure |
151 | 151 |
|
| 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 | + |
152 | 160 | [testenv:install] |
153 | 161 | skip_install = true |
154 | 162 | deps = -r{toxinidir}/requirements.txt |
|