-
Notifications
You must be signed in to change notification settings - Fork 3
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
72 char docstrings #72
Conversation
7b79e2e
to
b957269
Compare
I'm actually quite hesitant regarding this. I do like it for the doc comments, but I really don't like that it forces all comments to be 72 characters. Is there any way at all we could make it so that only doc comments are affected? |
I don't mind it for ordinary comments. There is no way to configure it to not go for ordinary comments. But you could fork flake8-docstrings. It's just a plugin to flake8 |
Maybe, but I don't think we'll get around to that. But what's your thought on the scenarios in which you have a method in a class, and a few nested loops/if-statements? The cases in which you only have something like 10-20 characters to write a comment? I think that harms readability more than the 72 character limit helps it for doc comments. |
I think that it keeps us in check so that we don't have 10 levels of nesting |
So what do you think? |
I'm still not sold on it, I don't think the allowed width of a comment will keep us in check regarding multiple indentations. Also it seems a bit confusing to have different limits for code and comments, wouldn't it be difficult to have editor support for it? Do you have any arguments for why we want this? |
Yes, PEP8 requires it:
|
b957269
to
be12dae
Compare
Seeing as it actually is in the PEP standard, I'm inclined to fold. I'll take another look at the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall.
be12dae
to
5f62547
Compare
According to PEP8, doc strings should be 72 characters wide at most. They now are.
5f62547
to
f42aea0
Compare
Make doc strings PEP8 compliant.