Skip to content

Commit

Permalink
Test case for RST401 Unexpected section title.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 16, 2021
1 parent c333f7f commit 796eead
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/RST401/sub_title.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""Example breaking RST401.
This should fail validation:
$ flake8 --select RST RST401/sub_title.py
RST401/sub_title.py:20:1: RST401 Unexpected section title
See below.
"""


def function(args):
"""Do something.
Paragraph here, then an indented chunk...
Indented text.
Unexpected Subtitle
-------------------
More indented text.
Back to the main level.
"""
pass

0 comments on commit 796eead

Please sign in to comment.