W505 not triggered on multi-line docstring #4264
-
I've enabled W505 and set max-doc-length to 72. However, it didn't trigger when I exceed the limit on muti-line docstring. def foo():
"""A VERY-LONG summary that exceed 72 characters.""" # W505 triggered as usual
return However: def foo():
"""A short summary.
A VERY-LONG description that exceed 72 characters. # Nothing happened
"""
return I'd like to know if it's a bug or it's as designed. As instructed in PEP 8, docstrings should be wrapped at 72 characters, and Ruff is expected to warn that. |
Beta Was this translation helpful? Give feedback.
Answered by
Andy-Dihong-Luo
May 10, 2023
Replies: 1 comment
-
Solved in #4347. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Andy-Dihong-Luo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved in #4347.