Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for bad-docstring-quotes message documentation #6150

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/data/messages/b/bad-docstring-quotes/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# fmt: off
def square_root():
'''Return the square root of input.''' # [bad-docstring-quotes]
# fmt: on
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 2 additions & 0 deletions doc/data/messages/b/bad-docstring-quotes/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def square_root():
"""Return the square root of input."""
2 changes: 2 additions & 0 deletions doc/data/messages/b/bad-docstring-quotes/related.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* `PEP 8 - Style Guide for Python Code <https://peps.python.org/pep-0008/>`_
* `PEP 257 - Docstring Conventions <https://peps.python.org/pep-0257/>`_