summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-08-22 12:18:39 (GMT)
committerGitHub <noreply@github.com>2023-08-22 12:18:39 (GMT)
commit9d00379e2c8dbf527cc113054b82f2fbde3e731c (patch)
tree68bc0807835ae626d368c91f56d82da735157942 /.pre-commit-config.yaml
parentd678ee771931a391212ef41e61e9717b43867e35 (diff)
downloadcpython-9d00379e2c8dbf527cc113054b82f2fbde3e731c.zip
cpython-9d00379e2c8dbf527cc113054b82f2fbde3e731c.tar.gz
cpython-9d00379e2c8dbf527cc113054b82f2fbde3e731c.tar.bz2
[3.11] Docs: move sphinx-lint to pre-commit (GH-105750) (#108276)
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 808622f..889bd85 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,3 +5,11 @@ repos:
- id: check-yaml
- id: trailing-whitespace
types_or: [c, python, rst]
+
+ - repo: https://github.com/sphinx-contrib/sphinx-lint
+ rev: v0.6.8
+ hooks:
+ - id: sphinx-lint
+ args: [--enable=default-role]
+ files: ^Doc/|^Misc/NEWS.d/next/
+ types: [rst]