Skip to content

Commit f59612e

Browse files
authored
Add a check for broken use of :user: in RST (#1990)
1 parent 1c8fa48 commit f59612e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ repos:
6464
exclude: >-
6565
^docs/changelog/(\d+\.(bugfix|feature|deprecation|breaking|doc|misc).rst|README.rst|template.jinja2)
6666
files: ^docs/changelog/
67+
- id: changelogs-user-role
68+
name: changelog files have a non-broken :user:`name` role
69+
language: pygrep
70+
entry: :user:([^`]+`?|`[^`]+[\s,])
71+
pass_filenames: true
72+
types: [file, rst]

0 commit comments

Comments
 (0)