Replies: 1 comment
-
|
Do I understand you correctly that you're looking for a rule that enforces an empty line between a multi-line docstring and the first statement in that body like this? def test():
"""
Docstring comment explaing what test does.
"""
return true # this should be an error because there's no empty line before the returnTo my knowledge, Ruff doesn't have such rule or an option to enforce this style. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Jut find settings with single line docstring, this is not enough for me, please 大佬 HELP HELP!
[lint.pydoclint]
# Skip docstrings which fit on a single line.
ignore-one-line-docstrings = true
Beta Was this translation helpful? Give feedback.
All reactions