-
-
Notifications
You must be signed in to change notification settings - Fork 105
flake: increase flake max line length #297
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
Conversation
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.
LGTM.
The original value was set a bit higher with respect to PEP8 which suggested a max of 80 lines to view code in terminals with ease. But nowadays it's fine to have 120 or higher so let's proceed with the changes.
Yeah traditional terminals are not being used anywhere so the original limit makes no sense. |
I think black defaults to 89 line length will check online and get back to see if we need to update/define a custom value in a config file. |
This is the flake8 configuration in tldr itself: https://github.com/tldr-pages/tldr/blob/main/.flake8 |
Was going through related discussions online about max line length, some places suggest a maximum of 120 (since it's used by default in IDE's like PyCharm to match with IntelliJ) and any nested single line won't be too long. Or else, as majority suggests online (and to be uniform with main repo), let's keep the current value of 88 as it is to not modify black's config, but instead use line breaks and backslashes to divide contents over multiple lines. And to prevent sending PR before addressing this, maybe we can add a precommit hook. |
But forced multiline looks ugly as hell. See the warning message in the other PR. There's no reason for it to be split into 3-4 lines |
120 is better than 88. I don't care as long as the minimum length is made longer. My main goal is to just get the warning message and autocomplete fixed and pushed into a new version. |
No description provided.