diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-06-18 11:52:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-18 11:52:05 (GMT) |
commit | bc07c8f096791d678ca5c1e3486cb9648f7a027b (patch) | |
tree | 59a38aad3d156715b8746dff7a6460846b236a3d /Doc | |
parent | dba72175116373c1d15e25d84c88b516daf9f5c4 (diff) | |
download | cpython-bc07c8f096791d678ca5c1e3486cb9648f7a027b.zip cpython-bc07c8f096791d678ca5c1e3486cb9648f7a027b.tar.gz cpython-bc07c8f096791d678ca5c1e3486cb9648f7a027b.tar.bz2 |
Docs: move sphinx-lint to pre-commit (#105750)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Makefile | 8 | ||||
-rw-r--r-- | Doc/constraints.txt | 4 | ||||
-rw-r--r-- | Doc/requirements.txt | 1 |
3 files changed, 3 insertions, 10 deletions
diff --git a/Doc/Makefile b/Doc/Makefile index c11ea6c..2269189 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -216,11 +216,9 @@ dist: rm dist/python-$(DISTVERSION)-docs-texinfo.tar .PHONY: check -check: - # Check the docs and NEWS files with sphinx-lint. - # Ignore the tools and venv dirs and check that the default role is not used. - $(SPHINXLINT) -i tools -i $(VENVDIR) --enable default-role - $(SPHINXLINT) --enable default-role ../Misc/NEWS.d/next/ +check: venv + $(VENVDIR)/bin/python3 -m pre_commit --version > /dev/null || $(VENVDIR)/bin/python3 -m pip install pre-commit + $(VENVDIR)/bin/python3 -m pre_commit run --all-files .PHONY: serve serve: diff --git a/Doc/constraints.txt b/Doc/constraints.txt index 66c748e..54888ea 100644 --- a/Doc/constraints.txt +++ b/Doc/constraints.txt @@ -23,7 +23,3 @@ sphinxcontrib-serializinghtml<1.2 # Direct dependencies of Jinja2 (Jinja is a dependency of Sphinx, see above) MarkupSafe<2.2 - -# Direct dependencies of sphinx-lint -polib<1.3 -regex<2024 diff --git a/Doc/requirements.txt b/Doc/requirements.txt index d3fa6ce..bde509f 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -11,7 +11,6 @@ sphinx==6.2.0 blurb -sphinx-lint==0.6.7 sphinxext-opengraph==0.7.5 # The theme used by the documentation is stored separately, so we need |