Skip to content

Commit c45812e

Browse files
webknjazpatchback[bot]
authored andcommitted
Merge pull request #12562 from webknjaz/maintenance/docs/user-role-validation
(cherry picked from commit e8aee21)
1 parent 60c9247 commit c45812e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.pre-commit-config.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ repos:
102102
)
103103
$
104104
files: ^changelog/
105+
- id: changelogs-user-role
106+
name: Changelog files should use a non-broken :user:`name` role
107+
language: pygrep
108+
entry: :user:([^`]+`?|`[^`]+[\s,])
109+
pass_filenames: true
110+
types:
111+
- file
112+
- rst
105113
- id: py-deprecated
106114
name: py library is deprecated
107115
language: pygrep

changelog/12562.contrib.rst

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Possible typos in using the ``:user:`` RST role is now being linted
2+
through the pre-commit tool integration -- by :user:`webknjaz`.

0 commit comments

Comments
 (0)