We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3df111 commit f7c3aa3Copy full SHA for f7c3aa3
1 file changed
tests/RST305/subsitution.py
@@ -0,0 +1,19 @@
1
+"""Print 'Hello world' to the terminal.
2
+
3
+Here's where the |foo| substitution is used - it is defined
4
+below.
5
6
+.. |foo| replace:: Here's where it's 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 the |bar| substituion definition is missing, so this
12
+docstring in isolation should fail validation::
13
14
+ $ flake8 --select RST RST305/substitution.py
15
+ RST305/subsitution.py:12:1: RST305 Undefined substitution referenced: "bar"
16
17
+"""
18
19
+print("Hello world")
0 commit comments