Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Feb 3, 2025
1 parent 8dbb474 commit 5a04fe5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions flake8_rst_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,11 @@ def run(self):
- ast.get_docstring(node, clean=False).count("\n")
- 1
)
assert node.body[0].lineno >= 1 and start >= 0, (
"Bad start line, node line number %i for: %s\n"
% (
node.body[0].lineno,
docstring,
)
assert (
node.body[0].lineno >= 1 and start >= 0
), "Bad start line, node line number %i for: %s\n" % (
node.body[0].lineno,
docstring,
)
for rst_error in rst_errors:
# TODO - make this a configuration option?
Expand Down

0 comments on commit 5a04fe5

Please sign in to comment.