Skip to content

Commit

Permalink
Test case for RST301 Unexpected indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 16, 2021
1 parent 655987b commit c333f7f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/RST301/nesting.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""Example of invalid nested bullets in RST.
This file should fail RST validation:
$ flake8 --select RST RST301/nesting.py
RST301/nesting.py:21:1: RST301 Unexpected indentation
See below.
"""


def function(args):
"""Do something.
This looks like a nested bullet point list,
doesn't it?
- aaaa
- bb1
- bb2
- ccc
- aaaa
- aaaa
However, RST would require blank lines between the
different levels of nesting.
"""
pass

0 comments on commit c333f7f

Please sign in to comment.