File tree Expand file tree Collapse file tree 5 files changed +11
-14
lines changed Expand file tree Collapse file tree 5 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 51
51
cache-dependency-path : ' Doc/requirements.txt'
52
52
- name : ' Install build dependencies'
53
53
run : make -C Doc/ venv
54
- - name : ' Check documentation'
55
- run : make -C Doc/ check
56
54
- name : ' Build HTML documentation'
57
55
run : make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html
58
56
82
80
make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n -W --keep-going" html 2>&1
83
81
84
82
# This build doesn't use problem matchers or check annotations
85
- # It also does not run 'make check', as sphinx-lint is not installed into the
86
- # environment.
87
83
build_doc_oldest_supported_sphinx :
88
84
name : ' Docs (Oldest Sphinx)'
89
85
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 5
5
- id : check-yaml
6
6
- id : trailing-whitespace
7
7
types_or : [c, python, rst]
8
+
9
+ - repo : https://github.com/sphinx-contrib/sphinx-lint
10
+ rev : v0.6.7
11
+ hooks :
12
+ - id : sphinx-lint
13
+ args : [--enable=default-role]
14
+ files : ^Doc/
15
+ types : [rst]
Original file line number Diff line number Diff line change @@ -216,11 +216,9 @@ dist:
216
216
rm dist/python-$(DISTVERSION)-docs-texinfo.tar
217
217
218
218
.PHONY : check
219
- check :
220
- # Check the docs and NEWS files with sphinx-lint.
221
- # Ignore the tools and venv dirs and check that the default role is not used.
222
- $(SPHINXLINT ) -i tools -i $(VENVDIR ) --enable default-role
223
- $(SPHINXLINT ) --enable default-role ../Misc/NEWS.d/next/
219
+ check : venv
220
+ $(VENVDIR ) /bin/python3 -m pre_commit --version > /dev/null || $(VENVDIR ) /bin/python3 -m pip install pre-commit
221
+ $(VENVDIR ) /bin/python3 -m pre_commit run --all-files
224
222
225
223
.PHONY : serve
226
224
serve :
Original file line number Diff line number Diff line change @@ -23,7 +23,3 @@ sphinxcontrib-serializinghtml<1.2
23
23
24
24
# Direct dependencies of Jinja2 (Jinja is a dependency of Sphinx, see above)
25
25
MarkupSafe<2.2
26
-
27
- # Direct dependencies of sphinx-lint
28
- polib<1.3
29
- regex<2024
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ sphinx==4.5.0
10
10
11
11
blurb
12
12
13
- sphinx-lint == 0.6.7
14
13
sphinxext-opengraph == 0.7.5
15
14
16
15
# The theme used by the documentation is stored separately, so we need
You can’t perform that action at this time.
0 commit comments