We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c3aa3 commit 3ea2c6bCopy full SHA for 3ea2c6b
1 file changed
tests/RST306/unknown_target.py
@@ -0,0 +1,19 @@
1
+"""Print 'Hello world' to the terminal.
2
+
3
+Here's where the hyperlink-name_ is used, the target definition
4
+is next.
5
6
+.. _hyperlink-name: Here's where the hyperlink target is defined.
7
8
+So far so good, but what if the definition is not in the same
9
+docstring fragment - it could be in an included footer?
10
11
+Here a missing-link_ hyperlink is used, so this docstring in
12
+isolation should fail validation::
13
14
+ $ flake8 --select RST RST306/unknown_target.py
15
+ RST306/unknown_target.py:12:1: RST306 Unknown target name: "missing-link".
16
17
+"""
18
19
+print("Hello world")
0 commit comments