Skip to content

Commit 2e01db1

Browse files
authored
Merge pull request #12566 from pytest-dev/patchback/backports/8.2.x/e8aee21384747bc75a393f24b7cd3571f1d7650a/pr-12562
[PR #12562/e8aee213 backport][8.2.x] 🧪 Lint for typos in `:user:` RST role
2 parents 60c9247 + c45812e commit 2e01db1

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)