-
Notifications
You must be signed in to change notification settings - Fork 71
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
No wrapping when there is a paragraph break #127
Comments
@weibullguy I just tried this (
|
@mcarans This is an example of the issue reported in #58. The |
@weibullguy It did correctly wrap the first paragraph, just not the second. Would it be possible for it to just ignore |
@mcarans the first paragraph is the summary of a multi-line docstring (even if it's not PEP-257 compliant), it was wrapped because you passed the |
@weibullguy Perhaps it would be useful to have a feature to tell docformatter to leave part of the docstring alone? For example, someone may have manually set up part of the docstring exactly as they want it and don't want it to be touched. The user could supply a regex for what part is to be left alone (or what part is to be changed if that is more useful). That general feature would also allow for my specific case of wanting to ignore |
@mcarans Not a bad idea and would be at least a short-term solution for many of the reST, numpy, google, etc. related issues. I would suggest using comment directives to turn docformatter on and off such that:
For example:
The only problem I encounter with the quick example is pydocstyle raising a If that seems to address your suggestion, why don't you raise a new issue requesting the functionality? If you do, please reference this comment. |
example:
When running docformatter it doesn't wrap, eg:
docformatter 1.5.0
The text was updated successfully, but these errors were encountered: