-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.0.12 - RST213, RST214 and RST215 with tests
These are all examples fitting the pattern: 'Inline %s start-string without end-string.' Raised in docutils/parsers/rst/states.py Noted in passing on GitHub issue #18.
- Loading branch information
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Print 'Hello world' to the terminal. | ||
RST uses single asterisks for **emphasis**, which is | ||
normally rendered as **italics**. | ||
Here *emphasis is missing a closing asterisk. | ||
That is considered to be an error, and should fail:: | ||
$ flake8 --select RST RST213/emphasis.py | ||
RST213/emphasis.py:7:1: RST213 Inline emphasis start-string without end-string. | ||
""" | ||
|
||
print("Hello world") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Print 'Hello world' to the terminal. | ||
RST uses double backticks for ``literals`` like code | ||
snippets. | ||
Here ``literal is missing the closing backticks. | ||
That is considered to be an error, and should fail:: | ||
$ flake8 --select RST RST214/literal.py | ||
RST214/literal.py:7:1: RST214 Inline emphasis start-string without end-string. | ||
""" | ||
|
||
print("Hello world") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Print 'Hello world' to the terminal. | ||
RST uses single backticks or back-quotes for various | ||
things including interpreted text roles and references. | ||
Here `example is missing a closing backtick. | ||
That is considered to be an error, and should fail:: | ||
$ flake8 --select RST RST215/backticks.py | ||
RST215/backticks.py:7:1: RST215 Inline interpreted text or phrase reference start-string without end-string. | ||
""" | ||
|
||
print("Hello world") |