Skip to content

Commit

Permalink
Cleanup other flake8 issues in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 16, 2021
1 parent bffc369 commit a9defa0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/RST203/def_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
This is expected to fail validation:
$ flake8 --select RST RST203/def_list.py
RST203/def_list.py:18:1: RST203 Definition list ends without a blank line; unexpected unindent.
RST203/def_list.py:19:1: RST203 Definition list ends without a blank line; unexpected unindent.
In this case, the four parameters should all have their own ``:parameter``
opening.
"""
""" # noqa: E501


def box(x1, y1, width=500, hieght=100):
"""Draw a box.
Expand All @@ -20,4 +21,3 @@ def box(x1, y1, width=500, hieght=100):
:return: Graphics object
"""
pass

2 changes: 1 addition & 1 deletion tests/RST215/backticks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
$ flake8 --select RST RST215/backticks.py
RST215/backticks.py:7:1: RST215 Inline interpreted text or phrase reference start-string without end-string.
"""
""" # noqa: E501

print("Hello world")
2 changes: 1 addition & 1 deletion tests/RST216/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
$ flake8 --select RST RST216/roles.py
RST216/roles.py:10:1: RST216 Multiple roles in interpreted text (both prefix and suffix present; only one allowed).
"""
""" # noqa: E501

print("Hello world")
2 changes: 1 addition & 1 deletion tests/RST217/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
$ flake8 --select RST RST217/roles.py
RST217/roles.py:10:1: RST17 Mismatch: both interpreted text role suffix and reference suffix.
"""
""" # noqa: E501

print("Hello world")
2 changes: 1 addition & 1 deletion tests/RST219/bad_sub_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
Better, escape the opening pipe as \|000...00>
instead.
"""
""" # noqa: E501

print("Hello world")
2 changes: 1 addition & 1 deletion tests/RST306/unknown_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Here a missing-link_ hyperlink is used, so this docstring in
isolation should fail validation::
$ flake8 --select RST RST306/unknown_target.py
$ flake8 --select RST RST306/unknown_target.py
RST306/unknown_target.py:12:1: RST306 Unknown target name: "missing-link".
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/RST307/code_invalid_arg.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Sadly docutils considers all three examples to be invalid:
$ flake8 --select RST RST307/code_invalid_arg.py
$ flake8 --select RST RST307/code_invalid_arg.py
RST307/code_invalid_arg.py:14:1: RST307 Error in "code" directive
RST307/code_invalid_arg.py:23:1: RST307 Error in "code-block" directive:
RST307/code_invalid_arg.py:31:1: RST307 Error in "code-block" directive:
Expand Down

0 comments on commit a9defa0

Please sign in to comment.